Better HN
top
new
best
ask
show
jobs
Log in
Sign up
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?
(stackoverflow.com)
2 points · by
Fletch137
· 11y ago · 1 comment
Comments
[–]
f00644
11y 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.