This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Open for more files | |
npm init | |
npm install express ejs body-parser --save | |
npm install mongoose --save | |
npm install passport passport-local passport-local-mongoose express-session --save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myArray = [1, 2, 3]; | |
var item = 4; | |
myArray.push(item); //works | |
var items = [5, 6, 7]; | |
myArray.concat(items): //doesn't work | |
myArray = myArray.concat(items); // have to do this instead |