ArraysĪs compared to other type-enforced languages, JavaScript arrays are just containers for any type of value, from string to number to object to even another array (which is how you get multidimensional arrays). Let's look at several of the built-in value types in JS, and explore how we can more fully understand and correctly leverage their behaviors. Please ignore this stuff.Īrrays, strings, and numbers are the most basic building-blocks of any program, but JavaScript has some unique characteristics with these types that may either delight or confound you. You Don't Know JS Yet: Types & Grammar - 2nd Edition Chapter 2: Values NOTE:Įverything below here is previous text from 1st edition, and is only here for reference while 2nd edition work is underway.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |