+ 11

[JavaScript] What Is "use strict"?

I've seen people using the line "use strict" in their JavaScript code and I'd like to know what it is. Any thorough explanation will be appriciated☺☺

18th Aug 2017, 1:25 PM
Given
Given - avatar
2 Antworten
+ 11
The "use strict" makes JavaScript engine adheres to modern implementations. Example let, const, class etc
18th Aug 2017, 2:27 PM
Benneth Yankey
Benneth Yankey - avatar
+ 12
Thanks to any further answer, found an article on it through an SO thread, I'm bookmarking it myself: https://johnresig.com/blog/ecmascript-5-strict-mode-json-and-more/
18th Aug 2017, 1:30 PM
esenia
esenia - avatar