Character Arrays
/* Character Arrays whilst this is a useless example it demonstrates the use of a string as a character array */ var foo = "this is a string"; for (var i = 0, len = foo.length; i < len; ++i) console.log(foo[i]); /* Result: t h i s i s a s t r i n g */