JavaScript
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
JavaScript
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