Strict mode article should reflect current ES6 instead of ES5 #1829
Labels
Content:JS
JavaScript docs
effort: medium
This task is a medium effort.
help wanted
If you know something about this topic, we would love your help!
Request type
Details
The Strict Mode article seems to not clearly reflect how strict mode works with the current version ES6. Many statements still refer to how strict mode worked with ES5 primarily. Now that ES6 is standard, refering to ES5 behavior primarily becomes just wrong.
For example, refer to this sentence about function definitions in block scope.
Prohibited in ES5, but allowed in ES6. Also the example that follows clearly only shows ES5 behavior. So in ES6 this statement is not true anymore, but the only thing there is is a small aside in the form of sentence
The article should reflect primarily ES6 behavior, and only mention old ES5 behavior as an aside, instead of vice versa.
Just to preempt the question, why I create this issue instead of changing the wiki myself: Since I'm currently learning about strict mode, I feel not confident enough to change the wiki about a topic that I feel like I haven't understood yet. I hope somebody that feels more confident can look through the article and update it.
MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode
The text was updated successfully, but these errors were encountered: