DEV Community

Cover image for How does JS execute "use strict"?
Rishav Jadon
Rishav Jadon

Posted on

How does JS execute "use strict"?

I'm curious if anyone knows what goes on behind the scenes when we write "use strict" in a JS script?

So in use strict we:

  • cannot use undeclared variables.
  • that means no hoisting. How is that handled🤔?

Discussion (0)