You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
JavaScript Math Review misstates when the nullish coalescing operator returns a value #71804
js v9 certThis is for the JS V9 certification.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.status: waiting triageThis issue needs help from moderators and users to reproduce and confirm its validity and fix.
In the “Binary Logical Operators” section, the summary says ?? returns a value only when the first operand is null or undefined. That leaves learners without an explanation for 0 ?? 7. The example defines volume: 0 and notifications: false but only demonstrates the fallback case.
Explain that JavaScript returns the first operand when it has a non-nullish value, including 0 and false. Otherwise it evaluates and returns the second operand. The same section could clarify which operand && and || return.
Screenshots
No response
System
Verified the example values with Node.js. The wording is in the English curriculum.
Additional context
Opening this for curriculum triage following #71797. The earlier #63409 concerned a separate lecture.
js v9 certThis is for the JS V9 certification.scope: curriculumLessons, Challenges, Projects and other Curricular Content in curriculum directory.status: waiting triageThis issue needs help from moderators and users to reproduce and confirm its validity and fix.
Activity
FullStraing commentedon Nov 26, 2026
I'd like to work on this — opening a PR that corrects the
??wording and extends the example to cover the non-nullish cases.