Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added clarifying note on compound assignment operator #29565

Closed
wants to merge 1 commit into from

Conversation

mighty-odewumi
Copy link
Contributor

Description

Clarified that x would be evaluated once in the compound assignment.

Motivation

To make readers have better understanding of the code concept.

Additional details

Related issues and pull requests

Relates to #29524

@mighty-odewumi mighty-odewumi requested a review from a team as a code owner October 9, 2023 19:47
@mighty-odewumi mighty-odewumi requested review from Elchi3 and removed request for a team October 9, 2023 19:47
@github-actions github-actions bot added the Content:JS JavaScript docs label Oct 9, 2023
@@ -24,6 +24,7 @@ Logical OR assignment [_short-circuits_](/en-US/docs/Web/JavaScript/Reference/Op
```js
x || (x = y);
```
Except that the expression x is only evaluated once.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[mdn-linter] reported by reviewdog 🐶

Suggested change
Except that the expression x is only evaluated once.
Except that the expression x is only evaluated once.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

@Josh-Cena
Copy link
Member

Closing in favor of #29563

@Josh-Cena Josh-Cena closed this Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:JS JavaScript docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants