ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 72 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below:

Let str = 'javascript';

Str[0] = 'J';

Str[4] = 'S';

After changing the string index values, the value of str is 'javascript'. What is the reason for this value:

A.
Non-primitive values are mutable.
Answers
A.
Non-primitive values are mutable.
B.
Non-primitive values are immutable.
Answers
B.
Non-primitive values are immutable.
C.
Primitive values are mutable.
Answers
C.
Primitive values are mutable.
D.
Primitive values are immutable.
Answers
D.
Primitive values are immutable.
Suggested answer: D
asked 23/09/2024
Babak Sadeghpour
28 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first