Arrays are mutable. I can do this:
var arr = [0,1,2,3];
arr[4] = 4;
but not this
var str = "abcd";
str[4] = "e";
This is something I don't find intuitive.
Arrays are mutable. I can do this:
var arr = [0,1,2,3];
arr[4] = 4;
but not this
var str = "abcd";
str[4] = "e";
This is something I don't find intuitive.