const in js
-
Are we – developers – allowed to use
const
in javascript?
In other words, is it ok to assume that the visitors most recent browser update is not earlier than september 2016?I want to use this construction and using
const
is cheaper than usingvar
function myFunc( arg1, arg2 ) { const $ = jQuery; var mySelection = $( '.myclass' ); // etc }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘const in js’ is closed to new replies.