Quick actions

cmd+k|ctrl+k

Navigation

Languages

Arrow functions

Snippet info

Language

JavaScript

Visibility

public

Author

nareshkmr

Created

2018-03-08T11:06:35Z

Updated

2018-03-08T11:39:03Z

function test() {
    console.log("1..2..3..");
}

test();


setTimeout(() => {
      console.log("1,,2,,3,,");
    }, 1000);


// declaring variable to annonymous function and later use it inthe code.
const test1 = () => {
    console.log("1,,2,,3,,");
}

 test1();

// array map function in es6
let points = [22,32,42];
points = points.map(element => element + 1);

console.log(points)

// length of the string
let point = ["test", "tes"];
point = point.map(({length}) => length);

console.log(point)



INFO