> Block scoping is default now in JS
The default best practice, you mean? Declaring with 'var' will still get you the same lexical scoping rules as always.
I believe OP meant 'inherited from pre-ES6 JS'
The default best practice, you mean? Declaring with 'var' will still get you the same lexical scoping rules as always.
I believe OP meant 'inherited from pre-ES6 JS'
That being said, "const" is already hardwired.