-
Notifications
You must be signed in to change notification settings - Fork 22.6k
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
Correct usage of ellipsis #18170
Correct usage of ellipsis #18170
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
The ellipsis is used for an unfinished enumeration. In most cases here, it is used to mark a pause, we should use a comma. I'm going to edit this directly here. |
(Or em-dashes—because who doesn't like em-dashes?) |
@@ -49,7 +49,7 @@ Conditional statements allow us to represent such decision making in JavaScript, | |||
|
|||
Let's look at by far the most common type of conditional statement you'll use in JavaScript — the humble [`if...else` statement](/en-US/docs/Web/JavaScript/Reference/Statements/if...else). | |||
|
|||
### Basic if ... else syntax | |||
### Basic if … else syntax |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be if...else
? This seems just the same as for...of
.
It's also used for unfinished thoughts or obvious part left out. [ref] |
@@ -158,7 +158,7 @@ Back to the topic of the main loop. You will often want to know when your main f | |||
|
|||
Several other optimizations are possible and it really depends on what your game attempts to accomplish. Your game genre will obviously make a difference but it could even be more subtle than that. You could draw every pixel individually on a canvas or you could layer DOM elements (including multiple WebGL canvases with transparent backgrounds if you want) into a complex hierarchy. Each of these paths will lead to different opportunities and constraints. | |||
|
|||
## It is decision... time | |||
## It is decision… time |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
## It is decision… time | |
## It is decision time |
files/en-us/learn/common_questions/checking_that_your_web_site_is_working_properly/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/structures/page_types/api_reference_page_template/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/structures/page_types/glossary_page_template/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/structures/page_types/html_element_page_template/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/structures/page_types/html_element_page_template/index.md
Outdated
Show resolved
Hide resolved
Yes, I've done a mix, depending on the place. Authors on MDN overuse ellipsis… |
Hot take: ellipsis is just a subpar alternative of "etc." + em-dash + comma 😄 |
Co-authored-by: Jean-Yves Perrier <[email protected]>
Fixing ellipsis before #17988 gets in.
We don't have to worry about
for...of
if we use...\s
.