You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What specific section or headline is this issue about?
Doesn't really fit the existing sections, maybe a new "Chaining operators" section?
What information was incorrect, unhelpful, or incomplete?
The Expressions and operators page doesn't seem to mention . or ?. at all. Elsewhere (for example, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) they're both called operators, so it seems they should be on the operators page. While . is pretty obvious and used in even the introduction, at least for completeness, it should be on the operators page. ?. isn't as obvious and is (relatively) new, so should definitely be there.
Also, ?? is mentioned in the text in the short-circuiting section in the Logical operators section, but not in any of the operator tables.
What did you expect to see?
At least ?. and probably . as well on the operators page.
Do you have any supporting links, references, or citations?
Maybe I’m confused or I’m using the terminology wrong, but . isn’t calling methods is it? Math.random doesn’t call the random property of the Math object. And isn’t optional chaining ?.? That’s what it says here and here (which I just discovered and does include ?., ??, and ??=, unlike the guide page).
Josh-Cena
added
accepting PR
Feel free to open a PR to resolve this issue
and removed
needs triage
Triage needed by staff and/or partners. Automatically applied when an issue is opened.
labels
Jun 5, 2024
MDN URL
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Expressions_and_operators
What specific section or headline is this issue about?
Doesn't really fit the existing sections, maybe a new "Chaining operators" section?
What information was incorrect, unhelpful, or incomplete?
The Expressions and operators page doesn't seem to mention . or ?. at all. Elsewhere (for example, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining) they're both called operators, so it seems they should be on the operators page. While . is pretty obvious and used in even the introduction, at least for completeness, it should be on the operators page. ?. isn't as obvious and is (relatively) new, so should definitely be there.
Also, ?? is mentioned in the text in the short-circuiting section in the Logical operators section, but not in any of the operator tables.
What did you expect to see?
At least ?. and probably . as well on the operators page.
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
en-us/web/javascript/guide/expressions_and_operators
The text was updated successfully, but these errors were encountered: