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 Blogs - https://code-sample.com and https://code-sample.xyz
My Book1 - BEST SELLING ANGULAR BOOK (INCLUDING ALL VERSIONS 2, 4, 5, 6, 7)
My Book2 - ANGULAR 2 INTERVIEW QUESTIONS BOOK - Both Books are Available on WorldWide.

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