# Learn Form Validation by Building a Calorie Counter - Step 22

### Tell us what’s happening:

if (![“+”, “-”, " "].includes(strArray[i])) {
cleanStrArray.push(strArray[i]);
}

WARNING

The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

``````Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
``````

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36 Edg/122.0.0.0`

### Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 22

Hello and welcome to FCC.
I tested your code. It passes all tests. What did you want us to help with?

good day. it does however say " Sorry, your code does not pass. Hang in there.

Your `for` loop should have an `if` statement." i cant go into the next step

and this is what my example looked like "const inputString = “Hello World”;
const charArray = inputString.split(‘’);
const consonantArray = ;

for (let i = 0; i < charArray.length; i++) {
if (![‘a’, ‘e’, ‘i’, ‘o’, ‘u’].includes(charArray[i])) {
consonantArray.push(charArray[i]);
}
}

You altered the original code, using code from the example.
Code from the example:

``````const inputString = "Hello World";
const charArray = inputString.split('');
const consonantArray = [];

for (let i = 0; i < charArray.length; i++) {
if (!['a', 'e', 'i', 'o', 'u'].includes(charArray[i])) {
consonantArray.push(charArray[i]);
}
}
``````