JavaScript for PHP Geeks: ES6/ES2015 (New JavaScript)

1:38:39

What you'll be learning

This tutorial uses Symfony 3. But, since this is a JavaScript tutorial, all the concepts work fine in newer versions of Symfony.
// composer.json
{
    "require": {
        "php": "^7.2.0",
        "symfony/symfony": "3.2.*", // v3.2.14
        "twig/twig": "2.10.*", // v2.10.0
        "doctrine/orm": "^2.5", // v2.7.1
        "doctrine/doctrine-bundle": "^1.6", // 1.10.3
        "doctrine/doctrine-cache-bundle": "^1.2", // 1.3.2
        "symfony/swiftmailer-bundle": "^2.3", // v2.4.2
        "symfony/monolog-bundle": "^2.8", // v2.12.1
        "symfony/polyfill-apcu": "^1.0", // v1.3.0
        "sensio/distribution-bundle": "^5.0", // v5.0.22
        "sensio/framework-extra-bundle": "^3.0.2", // v3.0.19
        "incenteev/composer-parameter-handler": "^2.0", // v2.1.2
        "friendsofsymfony/user-bundle": "~2.0@dev", // dev-master
        "doctrine/doctrine-fixtures-bundle": "~2.3", // v2.4.1
        "doctrine/doctrine-migrations-bundle": "^1.2", // v1.2.1
        "friendsofsymfony/jsrouting-bundle": "^1.6" // 1.6.0
    },
    "require-dev": {
        "sensio/generator-bundle": "^3.0", // v3.1.2
        "symfony/phpunit-bridge": "^3.0" // v3.2.2
    }
}

Guess what? JavaScript has evolved, in a big way. Did you know a new major version of JavaScript was released... in 2015!? Yep, and it's packed with so many new features and syntaxes, when you see code written in "new" JavaScript, it can be barely recognizable at first. But these new features are taking over the web. Let's embrace them!

  • Babel! Because you need to compile new JavaScript
  • ES6/ECMAScript2015/Harmony: Good things have many names
  • New Object-Oriented Classes!!?
  • The mysterious (amazing) new "arrow" callback syntax
  • The ...spread Operator
  • Object.assign
  • var, let and const
  • Object literal shorthand
  • Computed Property Names
  • Default function argument values
  • Destructuring Assignment

let yourSkills = (currentSkills) => currentSkills + 1000;


Your Guides

Ryan Weaver Leanna Pelham

Buy Access

Questions? Conversation?