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 Exam Javascript Developer I Topic 3 Question 81 Discussion

Actual exam question for Salesforce's Javascript Developer I exam
Question #: 81
Topic #: 3
[All Javascript Developer I Questions]

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:

Show Suggested Answer Hide Answer
Suggested Answer: D

Contribute your Thoughts:

Leonida
4 days ago
I agree with Broderick. Non-primitive values like strings cannot be changed once they are created.
upvoted 0 times
...
Broderick
8 days ago
I think the answer is B) Non-primitive values are immutable.
upvoted 0 times
...

Save Cancel