Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce JS-Dev-101 Exam - Topic 1 Question 16 Discussion

Posted by Keith on Oct 22, 2026 at 02:55 AM

Value of:

true + 3 + '100' + null

Suggested Answer: A

The correct answer is A.

JavaScript evaluates the expression from left to right:

true + 3 + '100' + null

Step 1:

true + 3

In numeric addition, true is converted to:

1

So:

true + 3

becomes:

1 + 3

Result:

4

Step 2:

4 + '100'

Because one operand is a string, JavaScript performs string concatenation instead of numeric addition.

So:

4 + '100'

becomes:

'4100'

Step 3:

'4100' + null

Again, because one operand is already a string, JavaScript converts null into the string:

'null'

So the final result is:

'4100null'

Execution summary:

true + 3 + '100' + null

// 1 + 3 + '100' + null

// 4 + '100' + null

// '4100' + null

// '4100null'

Therefore, the verified answer is A.


Get Premium JS-Dev-101 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
0 comments · newest first

Currently there are no comments in this discussion, be the first to comment!

0/2000 characters

Save Cancel