JS+

TypeScript

ES6

#CodePenOrebro

Definitions

  • ES5
  • ES6/ES2015
  • TypeScript

ES5

  • Bullet One
  • Bullet Two
  • Bullet Three

ES6

  • Template literals
    console.log(`Hello, ${name}`);
  • Classes
  • let const
  • Arrow functions

TypeScript

  • ES6 + types + features
  • Superset of JavaScript
  • Compiles to JavaScript
  • Microsoft (A Hejlsberg)
  • Open Source

Types

Greet(name: string) {
  console.log(`Hello, ${name}`);
}

Features

  • async/await
  • Bullet Two
  • Bullet Three

JS++

By Johan Karlsson