Javascript 51
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 […]
Lodash Flow Function
Lodash provides flow function which helps in sequencing multiple functions in series. Lodash _.flow() method takes the function names as parameters and executes in sequence by binding to current scope. In this demo, “We will learn how to use lodash flow functions”. The following code shows 4 methods substractByOne(), addByTwo(),multiplyByThree() and divideByFour(). Lodash _.flow() method […]