Refer to the code below:
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:
A . Non-primitive values are mutable.
B . Non-primitive values are immutable.
C . Primitive values are mutable.
D . Primitive values are immutable.
Answer: D
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments