JavaScript:
ES5/ES6
Data Type
(1) undefined, null, NaN, [], ''
(2) Array is a special object
(3) Function is variable
(4) Some high order function: map/reduce/filter/forEach/every/...
(3) JSON (JavaScript Object)
- Variable scope
- Closure (Function Scope)
- Prototype
- ES6
Reference:
JavaScript API Reference: https://developer.mozilla.org/en-US/docs/Web/JavaScript
JavaScript权威指南:https://book.douban.com/subject/10549733/ (只需要看第一部分“JavaScript语言核心”)
JavaScript秘密花园:https://bonsaiden.github.io/JavaScript-Garden/zh/
You Don't Know JavaScript: https://github.com/getify/You-Dont-Know-JS
Node.js
Event Driven
Non-Blocking IO/Model
JavaScript/V8
Modules(NPM)
Cluster
introduce the basic knowledge of JavaScript and Node.js
Goals:
(1)Understand the basic grammar of JavaScript.
(2)Understand the basic knowledge of Node.js
(3)Understand the basic folder structure of Node.js
(4)Understand the basic knowledge of npm.
(5)Understand where to find the JavaScript/Node.js API docs.
Practice:
TBD: Thinking about a simple problem, you need to write it via JavaScript and make it successfully run within Node.js.
In this practice, you need to save you dependency in package.json and understand how to install 3rd library using npm.