Traceur 17
Traceur ES6 Module Export Feature
ES6 provides the feature of exporting and importing module in JavaScript Programming Language. A object can be exported using export keyword and the same object can be imported using import..from clause. In this demo, “We will learn about ES6 export and import of module”. For this demo purpose i have created a project name ES6ModuleExportDemo […]
Traceur ES6 Promise Object
ES6 provides Promise object to support deferred and asynchronous execution of JavaScript. The Promise object helps in resolving Blocking nature of JavaScript. In this demo, “We will learn to use promise object in a JavaScript code”. The following code contains a method squarePositiveNumber() takes a number as input and returns a promise object.The Promise object […]
Traceur ES6 Template Feature
ES6 provides template string to render JavaScript expression.Template strings are string literals allowing embedded expressions. Template strings are enclosed by the back-tick ``. The expressions are included with dollar sign and curly braces as ${}. In this demo, “We will learn to use ES6 template string”. The following code contains a student detail object aStudent […]
Traceur ES6 Numeric Literal
ES6 provides support for Numeric literal like Binary,Octal and Hexadecimal number. The symbols for representing binary,octal and hexadecimal numbers are 0b,0x,0x respectively. In this demo,”We will learn about ES6 Numerical Literal”. The following code contains the Binary,Octal and Hexadecimal representation of decimal number 17. var aBinaryNumber = 0b10001; console.log("BINARY 0b10001 in DECIMAL: "+aBinaryNumber); var aOctalNumber […]