``` function validateLine(){ let isValid = true /...
# suitescript
s
Copy code
function validateLine(){ 
let isValid = true // default to valid unless proven otherwise below
...blah blah code that may set valid= false...  
return isValid 
}
c
I see you used "let" here. Likely I didn't get the update, what version of JavaScript is NetSuite rocking? I stick to ES5 principles right now.
r
@stalbert is using Typescript for NS dev, which is why he uses let. I believe current version of SuiteScript does not support it yet.
s
Yes, modern JS/TS is automatic for me at this point. I have to think harder to roll back to strict ES5