Computer Science, asked by kokan18, 1 year ago

What does “use strict” do in JavaScript, and what is the reasoning behind it?

Answers

Answered by manishkumar450
0

It is not a statement, but a literal expression, ignored by earlier versions of JavaScript. The purpose of "use strict" is to indicate that the code should be executed in "strict mode". With strict mode, you can not, for example, use undeclared variables.

Similar questions