One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin master |
function make(adjective) { | |
return new Function('noun', "return noun[0].toUpperCase() + noun.slice(1) + ' is " + adjective + "!'"); | |
} | |
var isFun = make('fun'); | |
isFun('biking'); //"Biking is fun!" |
const dictionary = { | |
car: 'automobile', | |
apple: 'healthy snack', | |
cat: 'cute furry animal', | |
dog: 'best friend' | |
}; | |
Object.keys(dictionary); // [car, apple, 'cat', 'dog'] | |
Object.values(dictionary); // ['automobile', 'healthy snack', 'cute furry animal', 'best friend'] |
const developer = { | |
name: 'Andrew', | |
sayHello: function () { | |
console.log('Hi there!'); | |
}, | |
favoriteLanguage: function (language) { | |
console.log(`My favorite programming language is ${language}`); | |
} | |
}; |
const developer = { | |
name: 'Andrew', | |
sayHello: function () { | |
console.log('Hi there!'); | |
} | |
}; | |
developer.sayHello(); | |
// 'Hi there!' | |
developer['sayHello'](); |
const parrot = { | |
group: 'bird', | |
feathers: true, | |
chirp: function () { | |
console.log('Chirp chirp!'); | |
} | |
}; | |
const pigeon = { | |
group: 'bird', |
const iceCreamOriginal = { | |
Andrew: 3, | |
Richard: 15 | |
}; | |
const iceCreamCopy = iceCreamOriginal; | |
iceCreamCopy.Richard; | |
// 15 |
let originalObject = { | |
favoriteColor: 'red' | |
}; | |
function setToBlue(object) { | |
object.favoriteColor = 'blue'; | |
} | |
setToBlue(originalObject); |
1. Install nodejs. https://nodejs.org/en/ | |
2. Check npm (node package manager) is installed via command prompt: | |
$ npm | |
3. Install gulp: | |
$ npm install gulp --global | |
4. In relevant project folder, create 'gulpfile.js': |