Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d864519

Browse files
committed
some changes to homework
1 parent 3ec8e2c commit d864519

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

week2/README.md

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,20 @@ Chocolate cake for the person who can succeed the most tests :) (prices will hav
2424

2525
### Something about ES6 I want you guys to know
2626
Old guys like Joost, Erol and I are talking about this "ES6" all the time. ES6 basically means: the latest version of NodeJS. It's a lot of really nice new features. For you guys, you should remember the following
27-
> During the NodeJS course, we will teach you some ES6 features, like Fat Arrow. It's *extremely* important to know whether a function comes from ES6 or from an older version of JavaScript. Why? [Because browsers don't support every new feature just yet](http://kangax.github.io/compat-table/es6/). NodeJS, on the other hand, you can always control which version of Javascript is running, because it's running on your computer, not in the browser. Version 6.x that you are running supports most ES6.
27+
> During the NodeJS course, we will teach you some ES6 features, like Fat Arrow. It's *extremely* important to know whether a function comes from ES6 or from an older version of JavaScript. Why? [Because browsers don't support every new feature just yet](http://kangax.github.io/compat-table/es6/). With Node, on the other hand, you can always control which version of Javascript is running, because it's running on your computer, not in the browser. Node Version 6.x that you are running supports most ES6.
28+
So in summary: if you're working on the frontend, you probably don't want to use es6 just yet. In backend, type node --version to see which version you are running, and make sure everyone on the team has the same version by adding "engine" to `package.json` like so:
29+
30+
```
31+
"dependencies": {
32+
...
33+
},
34+
"devDependencies": {
35+
...
36+
},
37+
"engines": {
38+
"node": ">=6.5.0" // this means you need 6.5 or higher
39+
},
40+
```
2841

2942
### 1. ES6: Fat Arrow functions
3043
This is one example of how ES6 can help us write cleaner code. I'm adding this as first reading material because it's used a lot on the NodeJS documentation website, so it's a good idea to understand what this means. Bonus points if you write your callbacks this way.
@@ -42,5 +55,8 @@ Only read the part about readFile, appendFile (you will need this in your assign
4255
[Node.JS docs - fs.readFile](https://nodejs.org/api/fs.html#fs_fs_readfile_file_options_callback)
4356
[Node.JS docs - fs.appendFile](https://nodejs.org/api/fs.html#fs_fs_appendfile_file_data_options_callback)
4457

45-
### 4. Buffers in NodeJS
46-
[Egghead video tutorial](https://egghead.io/lessons/node-js-node-js-buffers)
58+
### 4. Node Fundamentals
59+
Read parts:
60+
- 3.1, 3.2
61+
- 4.1, 4.3
62+
[Airpair tutorial](https://www.airpair.com/javascript/node-js-tutorial#3-node-fundamentals)

0 commit comments

Comments
 (0)