Skip to content

Conversation

@Lk-ux
Copy link
Contributor

@Lk-ux Lk-ux commented Nov 9, 2025

Updated the explanation of JavaScript’s loose equality to accurately state that null and undefined are equal to themselves and to each other (==), but not equal to any other value. The previous wording was ambiguous about whether “each other” included self-equality.

@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Nov 9, 2025
@javascript-translate-bot javascript-translate-bot requested a review from a team November 9, 2025 09:48
@smith558 smith558 requested a review from Copilot November 12, 2025 20:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the JavaScript comparison documentation to clarify that null and undefined are equal to themselves (self-equality) and to each other when using loose equality (==), addressing potential ambiguity in the previous wording.

  • Adds explicit mention of self-equality for null and undefined values
  • Clarifies that these values are equal to themselves and each other under loose equality

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@smith558 smith558 merged commit 5e893cf into javascript-tutorial:master Nov 12, 2025
1 check passed
@smith558
Copy link
Member

Thank you for your contribution! 🙂

@Lk-ux Lk-ux deleted the patch-2 branch November 14, 2025 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants