summaryrefslogtreecommitdiffstats
path: root/notes.txt
blob: 3873d420ed2d8251d8c6ea3d101c88a064b9d9a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
[express]
$ express
do '# npm install -g express' beforehand, express command
generates nice template dir structure to get started

[code analysis]
# npm install -g jslint
$ jslint --sloppy --white <file.js>

[make a copy of an array]
var foo = [1, 2, 3];
var bar = foo.slice(0);