From 6b4ea540d4e3e68af2868c7959e2c89badf5adfe Mon Sep 17 00:00:00 2001 From: l3onhard Date: Sun, 2 Nov 2025 20:47:01 +0100 Subject: [PATCH] fix(curriculum): correct sentence about the nullish coalesing operator (#63422) --- .../6732720e95f6a0db526a2e4d.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-conditional-logic-and-math-methods/6732720e95f6a0db526a2e4d.md b/curriculum/challenges/english/blocks/lecture-working-with-conditional-logic-and-math-methods/6732720e95f6a0db526a2e4d.md index db47362cf91..49837368774 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-conditional-logic-and-math-methods/6732720e95f6a0db526a2e4d.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-conditional-logic-and-math-methods/6732720e95f6a0db526a2e4d.md @@ -111,7 +111,7 @@ const result = null ?? 'default'; console.log(result); // default ``` -Since `null` is a falsy value, the string `default` would be logged to the console. The nullish coalescing operator is incredibly useful in situations where `null` or `undefined` are the only values that should trigger a fallback or default value. Here is an example of dealing with a user's preference settings: +Since `null` is a nullish value, the string `default` would be logged to the console. The nullish coalescing operator is incredibly useful in situations where `null` or `undefined` are the only values that should trigger a fallback or default value. Here is an example of dealing with a user's preference settings: ```js const userSettings = {