Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
What does “use strict” do in JavaScript, and what is the reasoning behind it? | Better HN
What does “use strict” do in JavaScript, and what is the reasoning behind it?
(opens in new tab)
(stackoverflow.com)
2 points
Fletch137
10y ago
1 comments
Share
1 comments
default
newest
oldest
f00644
10y ago
It's basically a safer way to write javascript code. The browser/interpreter will complain a lot more when the code runs. Similar to how a js linter would moan.
j
/
k
navigate · click thread line to collapse