As there is no character data type in JavaScript, what are strings?
Are strings in JavaScript arrays of characters? If strings are not arrays of characters then what are they?
>Solution :
Strings are not arrays:
console.log(Array.isArray("some string"));
However, they are "array-like objects", and they support the subscript ([]) operator. Note that the subscript of a string is a string on its own right – as you noted, there is no "char" type in JavaScript:
console.log(typeof "some string"[0]);