From 79c06257ac84c4d637e66324e240e6aa591e749d Mon Sep 17 00:00:00 2001 From: Clarence Bakosi Date: Sat, 25 Oct 2025 05:08:51 +0100 Subject: [PATCH] feat(curriculum): added a short explanation on ES6 for isNan lesson (#62592) Co-authored-by: Huyen Nguyen <25715018+huyenltnguyen@users.noreply.github.com> --- .../672d26809d388621ad1ecd43.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/curriculum/challenges/english/blocks/lecture-working-with-numbers-and-common-number-methods/672d26809d388621ad1ecd43.md b/curriculum/challenges/english/blocks/lecture-working-with-numbers-and-common-number-methods/672d26809d388621ad1ecd43.md index 14646a7bd24..954b4e13f7c 100644 --- a/curriculum/challenges/english/blocks/lecture-working-with-numbers-and-common-number-methods/672d26809d388621ad1ecd43.md +++ b/curriculum/challenges/english/blocks/lecture-working-with-numbers-and-common-number-methods/672d26809d388621ad1ecd43.md @@ -43,7 +43,7 @@ console.log(isNaN("blabla")); // true: "blabla" is not a number As you can see, `isNaN()` first attempts to convert the parameter to a number. If it can't be converted, it returns `true`. This behavior can lead to some surprising results, especially when dealing with strings that can be coerced into numbers. -Due to these potential inconsistencies, ES6 introduced `Number.isNaN()`. This method does not attempt to convert the parameter to a number before testing. It only returns `true` if the value is exactly `NaN`: +Due to these potential inconsistencies, ES6 (the sixth edition of JavaScript, released in 2015) introduced `Number.isNaN()`. This method does not attempt to convert the parameter to a number before testing. It only returns `true` if the value is exactly `NaN`: ```js console.log(Number.isNaN(NaN)); // true