a=new String("Hello");

a[0]==="H" //true
a[0]="J"
a[0]==="J" //false
a[0]==="H" //true
Does this mean I can only use Strings as arrays of char’s by .split("") and then .join("")?
ANSWER: Yes, in Javascript strings are readonly (aka immutable) This question is answered here at:
Strings are immutable, so yes.
ashould be reassigned if you want to change the string. You can also useslice:a = 'j'+a.slice(1), or areplace:a = a.replace(/^h/i,'j').You could create a custom mutable
Stringobject, something like this experiment (esp. see methodreplaceCharAt).