Javascript 51
Lodash Curried Function
Lodash supports the creation of curried function by using _.curry() method. A normal function when called with appropriate number of parameters it runs to the end of the execution. Sometime while programming we face situation when we don’t have sufficient number of parameters to call a function.I mean think of a situation when a method […]
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 […]
Traceur ES6 For Of Loop
ES6 provides For…Of loop for iterate over a Array Element. The For…Of loop can be used to iterate over Array,arguments,Map and Set objects. In this demo, “We will learn to used For…Of loop to iterate over an array”. The following code contains a array named fruitList containing many fruit names.A For…Of loop is used to […]
Traceur ES6 Destructuring Assignment
ES6 provides the feature of defining and initializing multiple variable in single shot.This process is called Destructuring assignment of variables. In this demo, “We will learn to define and initial multiple variables using destructuring”. In the following code we have 3 variables name,subject and score are defined and assigned with values from aStudentData object which […]