I started to read a book : JavaScript: The Good Parts by Douglas Crockford. I am keeping a short note for myself and others if useful for future. It’s about the grammar of Javascript.
# It’s better to use single line comment (//) rather than (/**/).
# Two variables having a value of Nan is never equal.
1 2 3 4 5 6 | x = NaN; y == NaN; x ==y; //false x === y; //false |
# && produces the first operand if the first operand is false otherwise the second operand
1 2 3 4 | 0 && 2 => 0 1 && 2 => 2 |
# || produces first operand if the first operand is true otherwise the second operand
1 2 3 4 | 2 || 4 => 2 0 || 4 => 4 |
Next is about Javascript : Object. Like the post or want more update? Subscribe!