Making the web faster

Something for beginners

Javascript: Understanding the Weird Parts - The First 3.5 Hours

Types:

  • undefined
  • null
  • NaN
  • boolean
  • number
  • string
  • symbol (ES6)

Other links:

Counter:

1
2
3
4
5
6
7
function getCounter() {
    var count = 0;
    return {
        incr: function () { return ++count; },
        decr: function () { return --count; }
    };
}
--------------------------------
| getCounter                   |
| _______________________      |
| |                     |-     |
| |                     ||-    |
| |               ______|||    |
| |  _______/--> | incr |||    |
| |  |count|     -------|||    |
| |  -------      ______|||    |
| |         \--> | decr |||    |
| |              -------|||    |
| |                     |||    |
| |                     |||    |
| |---------------------|||    |
|  |---------------------||    |
|   |---------------------|    |
|                              |
--------------------------------

Node.js

https://www.youtube.com/watch?v=czmulJ9NBP0