JavaScript is a very lenient language in terms of how it is interpreted. For example:
x = 5;
Enter fullscreen mode
Exit fullsc...
For further actions, you may consider blocking this person and/or reporting abuse
Also, 'use strict' prevents variable/object hoisting i.e. JavaScript in strict mode does not allow variables to be used if they are not declared.
Best practice is to move the variable declarations to the top of the script.
Good point, thank you for commenting!
— Gabriel
JavaScript allows octal numbers in ES6+ but only with the correct notation:
Good point, thanks for commenting!
— Gabriel
Strict mode is on by default for Ecmascript Modules. Projects built with Babel/Typescript doesn't require it, only Node projects.