Join Slack
Powered by
Before 2.1, were suitescript adding scope to var? ...
# 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
battk
04/13/2022, 2:11 AM
const is different in 2.0 and 1.0
m
Marwan
04/13/2022, 2:58 AM
What is different about const?
Marwan
04/13/2022, 2:58 AM
Is that in the docs?
b
battk
04/13/2022, 3:03 AM
const isnt even documented
battk
04/13/2022, 3:04 AM
its not block scoped, and does not throw an error on reassignment
battk
04/13/2022, 3:04 AM
it just silently ignores the attempt
m
Marwan
04/13/2022, 10:57 AM
❤️
Open in Slack
Previous
Next