Skip to content

Js "First-class" concept added (now in the correct time) #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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