/    Sign up×
Community /Pin to ProfileBookmark

Should I use "strict" mode ?

Should I use “strict” mode when developing javascript?

If yes, why?
If no, why?

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@rootJul 15.2017 — IMHO no you will find that allot of things are not allowed in strict mode that are allowed under normal operation.

I see no reason to stifle the language.
Copy linkTweet thisAlerts:
@KeverJul 15.2017 — I rarely use it. You can read https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode and decide for yourself when to use it. It can help if you need to write performant scripts for like a game. Just keep in mind that it only works from IE10+. Older browsers will run that script in standard mode, and will might behave unexpected.
Copy linkTweet thisAlerts:
@brsastreauthorJul 16.2017 — Thanks!
×

Success!

Help @brsastre spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...