Traceur 17
Traceur Compiling ES6 Spread Operator
ES6 provides another useful operator called spread operator to work with Array. Spread operator is represented by 3 dots prefixed with a variable name.For example …fruitArray . In this demo, “We will learn to use spread operator by an example”. Spread operator is similar to an inline function which expand it self on the called […]
Traceur Compiling ES6 Block Scope Binding Using Let Keyword
ES6 provides the true block scope binding using Let keyword. let allows us to declare variables that are limited in scope to the block, statement, or expression on which it is used. variable declared in var keyword are global or local to an entire function regardless of block scope. In this demo, “We will learn […]
Grunt Traceur Compiler And Watcher For ES6 Code
Grunt provides a compiler and watch to detect changes in ES6 code and generates the corresponding ES3 code. In this demo,”We will learn how to implement Grunt for Traceur compiler for ES6 code”. We need to install Grunt locally to project using following command npm install grunt.The following screenshot shows the terminal with Grunt installation […]
Traceur ES6 Arrow Operator Offline Compilation
Traceur provides offline compilation of ES6 code to ES5 code for testing ES6 feature. In the previous post we learnt installing Traceur and installing traceur-runtime.js file using Bower. In this Demo, “We will learn to use traceur command to compile ES6 code to ES5 for ES6 Arrow operator”. For this demo we have created 2 […]