Why would you use `const` inside a loop? A `const`...
# suitescript
e
Why would you use
const
inside a loop? A
const
can't change, so you can't update it each iteration. Seems you could just declare the
const
outside the loop and read it within
k
Thanks @erictgrubaugh
Also , why cann’t we use let inside loop or why netsuite isn’t allowing me to use let
c
let isn't ECMA 5.1 its further than that so it won't work
k
Got it @creece
s
If you use typescript you can use both
let
and
const
in SuiteScript. today.
c
what about NFT 😄
s
NFT is optional and awesome, of course.
I just feel bad for all the NS devs that leave themselves stuck in old school JS