Skip to content

Conversation

@blue2cat
Copy link

@blue2cat blue2cat commented Dec 3, 2025

Description

Clarify how lexical declarations interact with typeof undefined checks when not initialized.

Motivation

The current docs on undefined aren't clear about the fact that variables created with let and const will throw a ReferenceError if they're compared using typeof undefined before initialization.

@github-actions github-actions bot added Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed labels Dec 3, 2025
@Josh-Cena
Copy link
Member

I agree with the idea, but I can only review or merge after you make it ready for review.

@blue2cat blue2cat marked this pull request as ready for review December 4, 2025 04:58
@blue2cat blue2cat requested a review from a team as a code owner December 4, 2025 04:58
@blue2cat blue2cat requested review from Josh-Cena and removed request for a team December 4, 2025 04:58
@blue2cat
Copy link
Author

blue2cat commented Dec 4, 2025

@Josh-Cena thanks, I've marked as ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/s [PR only] 6-50 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants