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

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
My Blogs - http://www.code-sample.com and http://www.code-sample.xyz
My Books - Google Amazon and Flipkart Book Store!

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.
ASK Questions
SQL Server NodeJs TypeScript JavaScript Angular SQL Server My Book