It's not hitting the log statement for some reason...
# suitescript
c
It's not hitting the log statement for some reason.
w
maybe there is no result?
c
I can't see why there wouldn't be - I'll look harder
s
2.0 or 2.1? Reason I ask is I'm not sure let works in 2.0
s
IIRC 2.0 allows
let
as a keyword but don't recall if it actually does anything different from
var
in 2.0
c
2.1 let is ok
It was a 0 result - debugger highlighted the issue straight away
👍 2
s
p.s. imho you should be using
const
rather than
let
for safety
in general, I convert SS2.0
var
-> SS2.1
const
unless you need to mutate the variable.
🎉 1
if you do so, then any
let
in the code stands out to tell you the variable is intended for mutation
off topic I realize but hopefully a little bit interesting.