February 2015 13
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 […]
Installing Traceur For Testing ES6 Code
Google provides a compiler name Traceur for testing ES6 feature. Traceur compiles the ES6 code to ES5 for testing ES6 feature. You can find more details about Traceur compiler in the following link: https://github.com/google/traceur-compiler In this demo, “We will learn to install Traceur in the […]