diff --git a/README.md b/README.md index a6cd176..1bf094b 100644 --- a/README.md +++ b/README.md @@ -25,6 +25,12 @@ ```javascript console.log(typeof (typeof 'str')); // 'string' ``` +- if you code: + ```javascript + console.log(typeof(Object)) + ``` + It returns "function" as result. This is because Javascript is a weakly typed language and with a great degree of freedom. JavaScript functions are called "high-order" or "first-class" and can, like objects, store attributes and methods. + - There is only one value in JavaScript that is not equal to itself - **NaN**. `NaN` is the result of a nonsensical computations and as such is not equal to another nonsensical computations. - `null` and `undefined` are the equal in value but they have different types. They both represent the absence of any value.