var sum = () => {}
var sum = arg2 => {}
var sum = (arg1,arg2) => { arg1 + arg2 }
var myArray = [1, 2, 3, 4, 5]; console.log(myArray.filter(item => item%2 === 0)) // 2,4
function getStock(name) { this.name = name; setInterval(function () { console.log('name is :' + this.name); }, 1000); } var stock = new getStock('IBM');
function getStock(name) { this.name = name; setInterval(() => { console.log('name is: ' + this.name); }, 1000); } var stock = new getStock('IBM');