Domanda di colloquio di Glassdoor

Q: What does 'use strict' mean in javascript? Q: How do you write chainable functions? etc...

Risposta di colloquio

Anonimo

5 ago 2018

The purpose of "use strict" is to indicate that the code should be executed in "strict mode". Its scope is global (all code in the script will execute in strict mode). With strict mode, you can not, for example, use undeclared variables. All modern browsers support "use strict" except Internet Explorer 9 and lower.