ECMAScript

What is ECMAScript (ES6) in Angular 2?



The ECMAScript is known as now ES6. The ES6 is version 6. The ES6 is a scripting language and it developed by Ecma International org.


The JavaScript is an implementation of ES6. The ES6 features are fully supported to latest browsers(chrome, Firefox etc.)

Go to in detail http://en.wikipedia.org/wiki/ECMAScript

A basic simple example with live demo of Add two numbers using ES6 as given below.

  let AddTwoNum = (num1,num2) => num1+num2;
  console.log(AddTwoNum(4,3));

For the output go to link http://www.es6fiddle.com/i8fi4ths/
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

www.code-sample.com/. Powered by Blogger.
^