Skip to content

Short circuiting after first true condition in: if - else if - else #43891

@aoioioi

Description

@aoioioi

MDN URL

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else

What specific section or headline is this issue about?

Usage of if - else if - else

What information was incorrect, unhelpful, or incomplete?

Minor detail but there is no mention of if ... else if ... else short circuiting after first true condition.

What did you expect to see?

Some mention of other code blocks being skipped after first true condition in an if ... else if ... else statement.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions