1 of 17

What’s the deal with Javascript?

<lecture>

George Mauer

http://georgemauer.net

gmauer@gmail.com

@togakangaroo

2 of 17

Because we want web pages to *do* things

3 of 17

So then Netscape gets this guy...

4 of 17

Javascript - a cute little language for the kids

5 of 17

2004: Gmail

6 of 17

The Rise of the Frameworks!

7 of 17

The Javascript Bible of the 2000s (on the right)

8 of 17

EcmaScript 6 - Serious eyebrows!

9 of 17

And it just keeps on growing

10 of 17

NodeJs thinks its cool

11 of 17

So reading tutorials is confusing

Declare variables with

var

let

const

function

12 of 17

So reading tutorials is confusing

Declare functions with

function foo() {

}

foo = function() {

}

foo = () => {

}�foo = () => …�

13 of 17

So reading tutorials is confusing

Iterate loops with

while�for�for..in�for..of�map�filter�reduce

Symbol.iterator

14 of 17

Open Chrome Devtools

15 of 17

Assorted DevTools tips

  • Escape to split-screen with js console
  • Disable cache while DevTools is open
  • Right-click to inspect element in elements pane
  • $0 in console is the selected element
  • document.querySelectorAll(selector) to select elements by css
  • Use auto-complete in the console!

16 of 17

17 of 17