Before 2.1, were suitescript adding scope to var? ...
# suitescript
m
Before 2.1, were suitescript adding scope to var? Or it was global exactly like in JS?
b
var in all versions of suitescript behave as standard js
const is different in 2.0 and 1.0
m
What is different about const?
Is that in the docs?
b
const isnt even documented
its not block scoped, and does not throw an error on reassignment
it just silently ignores the attempt
m
❤️