Conversation
Preview URLsFlawsURL:
External URLsURL: No new external URLs (this comment was updated 2021-11-24 02:38:15.023221) |
wbamberg
left a comment
There was a problem hiding this comment.
Thanks @alattalatta , this is a good improvement!
I had one very minor comment. I would merge this PR even without it being addressed but please accept it if you agree. On this:
- Didn't use
constto avoid having to explain here why a const object properties can be changed... Which I think can be confusing. 🤔
I agree that const can be confusing, mostly because it is badly taught. For that reason I think it's important to use it consistently in our docs and explain it clearly from the start.
We discussed this issue recently: https://github.com/mdn/content/discussions/10389 and agreed to use const in situations like this.
But I'd merge this PR anyway because it's much better than what was there before.
wbamberg
left a comment
There was a problem hiding this comment.
Very nice cleanup. Thank you @alattalatta !
Summary
Fixed and updated the doc here and there.
Motivation
var, changed toletandconst.Didn't useconstto avoid having to explain here why a const object properties can be changed... Which I think can be confusing. 🤔Supporting details
Related issues
Metadata