> var a = "你好";
undefined
> console.log(a[1]);
好
undefined
>
length is the number of characters. It doesn’t matter what the storage is. Strings are all operated on arrays, as shown in the above code. So the length of the string you take is the length of the array.
Master Ruan, there are times when you feel faint, don’t worry about it~
Sister, that is not auspicious sign
That character is not auspicious, please copy it and try it
length is the number of characters. It doesn’t matter what the storage is.
Strings are all operated on arrays, as shown in the above code.
So the length of the string you take is the length of the array.
Master Ruan, there are times when you feel faint, don’t worry about it~