paint-brush
Why Do We Need Strict Modeby@mozilla
688 reads
688 reads

Why Do We Need Strict Mode

by Mozilla Contributors13mDecember 16th, 2020
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

JavaScript's strict mode is a way to opt in to a restricted variant of JavaScript, thereby implicitly opting-out of "sloppy mode" Strict mode makes several changes to normal JavaScript semantics. Browsers not supporting strict mode will run strict mode code with different behavior from browsers that do not support it. The entire contents of JavaScript modules are automatically in strict mode, with no statement needed to initiate it. To invoke strict mode for an entire script, put the exact statement "use strict" before any other statements.

Companies Mentioned

Mention Thumbnail
Mention Thumbnail
featured image - Why Do We Need Strict Mode
Mozilla Contributors HackerNoon profile picture
Mozilla Contributors

Mozilla Contributors

@mozilla

Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.

About @mozilla
LEARN MORE ABOUT @MOZILLA'S
EXPERTISE AND PLACE ON THE INTERNET.
L O A D I N G
. . . comments & more!

About Author

Mozilla Contributors HackerNoon profile picture
Mozilla Contributors@mozilla
Mozilla (stylized as moz://a) is a free software community founded in 1998 by members of Netscape.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Co
Allfamousbirthday
Startupnchill
Digimarket
Anonymousmedia