Dustin Tauer
dustin@easelsolutions.com
@dtauer
https://github.com/dtauer/infotec-2017
https://slides.com/dtauer/infotec2017-javascript
WIFI SSID: Conference Center
WIFI Username: YAHOO
WIFI Password: YAHOO!
- Variables
- Template Literals
- Arrow Functions
- Gather/Spread/Destructuring
- Iterables/Symbols
- Promises
- Async Functions
- Workflow
var thisWay = "Old School"
let location = "Omaha"
const name = "Dustin"
const first = "Hello";
const last = "World";
var oldWay = first + " " + last
var newWay = `${first} ${last}` // Weird back tick `
var doSomething = function(){
}
var doSomethingElse = () => {
}
//Spread Operator ...
function bunchOfParams(...params){
//Different than the arguments parameter
}
function twoPlusMore(a, b, ...c){
//c is an array
}
//Destructuring
var person = {name: "dustin", location:"Minnesota"}
var name = person.name
var {location} = person
let myFirstPromise = new Promise((resolve, reject) => {
//do something asynchronous
resolve() //call resolve when done
});
myFirstPromise
.then((successMessage) => {
//result from myFirstPromise
})
.then()
.then()
.catch(e)
async function myFirstAsync() {
//do something asynchronous
return "something"
});
await myFirstAsync()
.then((result) => {
//result == "something
})
Compile new syntax (ES6 & ES7) to
ES5 JavaScript (more browser capability)
Dustin@easelsolutions.com
https://github.com/dtauer/infotec-2017