Comments
Simple types
All other values are objects. Numbers, strings, and booleans are object-like in that they have methods, but they are immutable Objects in JavaScript are mutable keyed collections In JavaScript, arrays are objects, functions are objects, regular expressions are objects, and, of course, objects are objects. Objects
JavaScript includes a prototype linkage feature that allows one object to inherit the properties of another - this can reduce object initialization time and memory consumption. |
String
JavaScript was built at a time when Unicode was a 16-bit character set, so all characters in JavaScript are 16 bits wide. Object Literals
var empty_obejct = {} var stooge = { "frist-name" : "Teo", last_name = "G"} |
Numbers
JavaScript has a single number type. Internally, it is represented as 64-bit floating point, the same as Java’s double. Unlike most other programming languages, there is no separate integer type, so 1 and 1.0 are the same value |
Cheatography
https://cheatography.com
JS Tips Cheat Sheet (DRAFT) by teog29
sssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
This is a draft cheat sheet. It is a work in progress and is not finished yet.