https://netsuiteprofessionals.com logo
#suitescript
Title
# suitescript
m

Marwan

04/13/2022, 2:08 AM
Before 2.1, were suitescript adding scope to var? Or it was global exactly like in JS?
b

battk

04/13/2022, 2:11 AM
var in all versions of suitescript behave as standard js
const is different in 2.0 and 1.0
m

Marwan

04/13/2022, 2:58 AM
What is different about const?
Is that in the docs?
b

battk

04/13/2022, 3:03 AM
const isnt even documented
its not block scoped, and does not throw an error on reassignment
it just silently ignores the attempt
m

Marwan

04/13/2022, 10:57 AM
❤️