Question PRG-JS-0077
HardWhat does 'use strict' change about assigning to an undeclared variable?
- A.
Nothing
- B.
It throws a ReferenceError instead of creating a global variable
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
JavaScript question
What does 'use strict' change about assigning to an undeclared variable?
Nothing
It throws a ReferenceError instead of creating a global variable
Sign up free to see the answer and a step-by-step explanation.
It converts it to a constant
It creates a local variable