Tell us what’s happening:
Hello, I’ve just solved this step, but I think I should point out that isNaN() is mentioned in this step to be a method, but another post on this step called it a “special function”.
I won’t post the solution, but using isNaN() as if it was a method, something like…
/* file: script.js */
// User Editable Region
const calculate = () => {
const value = document.querySelector("#numbers").value;
const array = value.split(/,\s*/g);
const numbers = array.map(el => Number(el));
const filtered = numbers.filter(el => !el.isNaN()); //wrong syntax
}
// User Editable Region
…resulted in an error. Should this be clarified?
Here is the post in question…
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:136.0) Gecko/20100101 Firefox/136.0