Do your message error exactly end with "... due to strict mode"?!
Your code works fine for me... even if I explicitly set the strict mode (wich all the more has no reason to be set implicitly).
Maybe your device is a little outdated and doesn't (well?) support 'let' and/or 'const' keywords?