Learn Advanced Array Methods by Building a Statistics Calculator - Step 6

Can someone please point me in the right direction? I’m getting the errors,

Preformatted text// running tests
2. Your calculate function should use the .filter() method on the numbers array.
3. You should assign the result of numbers.filter() to the filtered variable.
// tests completed
[ 1, 2 ]

from this code

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 => !isNaN(el) );
console.log(filtered);
}

I think I followed the intstructions and my console log for the input 1,“X”,2 shows the string is removed.

Step 6 instructions say nothing about logging filtered or implementing the filter() method. In the future, please use the HELP button to ask your forum question so your code is formatted and we get a link to the project step you’re on. You can also add 3 backticks (```) before and after your code or use the </> in the editor.

This is where I’m at

And there isn’t a Help button.

The Help button appears after you’ve checked your code three times unsuccessfully.

I provided help in the first sentence of my last post.

Thanks for your help. Turns out, it wasn’t a browser related issue. There was a different input to the filter method that passed the test.

Yes. Your filter() method should have been empty, and you should not have logged filtered based on the instructions for this step. Sorry you were confused by my edit (now removed) that was intended for another poster.

for next time please follow this to open a topic:

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.