Team LiB
Previous Section Next Section

Summary

Hopefully you now see now why arrays and strings are so useful. Both are considered objects by the JavaScript interpreter, but they are specialized in ways that other objects are not. Arrays are used to hold similar data in a meaningful way. Arrays are the only objects that use the bracket operator ([]) to reference elements. Strings can be represented as literals, as in "Hello World!!", or as objects, each of which have many properties and methods that can be used on them.


Team LiB
Previous Section Next Section