JavaScript

Reply to this note

Please Login to reply.

Discussion

const output = []; //arrays

const output = [...array];

const run = function(){

console.log('xxx');

}

anonymous function expression

hoisting

let vs var

var has large scope

var function-scoped

ES6 ES2015 let, const block-scoped