first drink
is on us 🍻
join us on slack
let's start doing stuff
read–eval–print loop
// RECAP
// Definitions
var foo = 'bar';
let foo = 'bar';
const foo = 'bar';
// Arrow functions
const myFunction = () => {
return 'bar';
}
// Classes
class myClass {
someMethod () {
return 'bar';
}
}
// Promise
const myPromise = new Promise((resolve, reject) => {
// ... do something async
if(!error) {
resolve(myResult);
} else {
reject(error);
}
});
// Interpolation
const myVar = 'pixel';
const foo = `${myVar}bar`;
// Spread operator
const foo = ['pixel', 'bar'];
const newArray = [...foo, 'is', 'awesome'];
our first http server \o/
// in your terminal
mkdir pixelbar && cd pixelbar
npm init // hit enter a couple of times
npm install express --save
touch index.js
or when ur a pro:
build an irc trivia (w/ e.g. jService) chatbot...