Okay, so I was totally convinced it was A) Non-primitive values are mutable, but now I'm second-guessing myself. These JavaScript questions can be tricky!
Ah, I was about to choose C) Primitive values are mutable, but then I remembered that strings are special in JavaScript. Gotta love those language quirks, am I right?
I'm pretty sure the answer is D) Primitive values are immutable. Strings are primitive data types in JavaScript, so you can't actually modify the individual characters of a string. That's why the value of 'str' didn't change after the attempted changes.
Marica
9 days agoCarlton
11 days agoDomingo
15 days agoSusy
21 days agoLeonida
25 days agoBroderick
29 days ago