Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down