You Don’t Know JS: Up & Going by Kyle Simpson

You Don’t Know JS: Up & Going by Kyle Simpson

Author:Kyle Simpson [Simpson, Kyle]
Language: eng
Format: epub, pdf
Tags: js, o'reilly
Publisher: O'Reilly Media
Published: 2015-04-02T18:30:00+00:00


It may be helpful to think of arr visually:

Because arrays are special objects (as typeof implies), they can also have properties, including the automatically updated length property.

You theoretically could use an array as a normal object with your own named properties, or you could use an object but only give it numeric properties (0, 1, etc.) similar to an array. However, this would generally be considered improper usage of the respective types.

The best and most natural approach is to use arrays for numerically positioned values and use objects for named properties.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.