1

I understand that they are immutable, but I want to know why they are immutable.

Is there any specific reason as to why JavaScript strings are immutable? Wouldn't it make life easier if they weren't, just like arrays?

Will
  • 11
  • 1

0 Answers0