Official Bank 0/209

Salesforce Certified JavaScript Developer Exam (JS-Dev-101) - SalesForce Actual Exam Questions

Last updated on May 12, 2026

97% Exam Compliance
209 Total Questions
1
Question

Consider type coercion, what does the following expression evaluate to? True + 3 + ‘100’ + null

Options
A

104

B

4100

C

‘3100null’

D

‘4100null’

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

2
Question

Refer to the code below: Line 05 causes an error. What are the values of greeting and salutation once code completes?

Question image
Options
A

Greeting is Hello and salutation is Hello, Hello.

B

Greeting is Goodbye and salutation is Hello, Hello.

C

Greeting is Goodbye and salutation is I say Hello.

D

Greeting is Hello and salutation is I say hello.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

3
Question

There is a new requirement for a developer to implement a currPrice method that will return the current price of the item or sales.. What is the output when executing the code above

Question image
Options
A

50Uncaught TypeError: saleItem,desrcription is not a function5080

B

50805072

C

508072

D

5080Uncaught ReferenceError:this,discount is undefined72

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

4
Question

A developer is trying to handle an error within a function. Which code segment shows the correct approach to handle an error without propagating it elsewhere?

Options
A

Option A

B

Option B

C

Option C

D

Option D

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

5
Question

Refer to the code below: Let str = ‘javascript’; Str[0] = ‘J’; Str[4] = ’S’; After changing the string indexvalues, the value of str is ‘javascript’. What is the reason for this value:

Options
A

Non-primitive values are mutable.

B

Non-primitive values are immutable.

C

Primitive values are mutable.

D

Primitive values are immutable.

Discussion (0 comments)

to join the discussion

Community Discussion

No discussions yet. Be the first to ask!

Finish Practice?

Are you sure you want to finish? This will end your practice session.