Ecmascript v6 – Additions and Changes – In the Beginning



Ecmascript v6 – Additions and Changes – In the Beginning

0 0


emcascript6_lecture

Lecture of mine about Emcascript v6

On Github ik5 / emcascript6_lecture

Ecmascript v6

Additions and Changes

Slide notes

In the Beginning

  • Moca was created in 1995 by Brendan Eich from Netscape
  • Name changed to LiveScript and later to Javascript
  • The prerelease of Javascript was in 1996 with Netscape Navigator v2.0
  • Microsoft did not like it, so like always - created a clone named JScripti for IE v3.0.
  • Netscape wanted to standarnize Javascript, so they gave it to Ecma at November 1996
  • Ecma adopted Javascript at 1997 and we have Ecma-262 standard
  • Ecmascript is the name of the language described by Ecma-262
  • The name was a compromise between the organisations at Ecma that delth with the standard
  • Both Javascript and JScript was competible with Ecmascript, but also added their own featurs to it
BORING !

Internet at 1995

Internet today

What is a browser ?

Most people at 2009 just didn't know the answer !

From 1995 to 2013 (now)

Ecmascript

The standard for a language

The Syntax

let

function varTest() {
  var x = 31;
  if (true) {
      var x = 71;  // same variable!
      alert(x);  // 71
  }
  alert(x);  // 71
}

function letTest() {
  let x = 31;
  if (true) {
      let x = 71;  // different variable
      alert(x);  // 71
  }
  alert(x);  // 31
}
            

const

const PI = 3.1415926535897932385; // First time we place it
      PI = 3.14                 ; // Nothing will be changed
const PI = 3.14                 ; // Still nothing happened
var   PI = 3.14                 ; // Now we changed it (?)