3 ms·
>> which is solved in ES6 by introducing lexical scoping I thought JS has always had lexical scoping. What's new in ES6 allowing variables to have block scope.
by yblu 12y ago
>> which is solved in ES6 by introducing lexical scoping
I thought JS has always had lexical scoping. What's new in ES6 allowing variables to have block scope.