Tell us what’s happening:
Your for loop should see if strArray[i] is found in [“+”, “-”, " "] . and Your for loop should push strArray[i] to cleanStrArray.
Your code so far
for (let i = 0; i < strArray.length; i++) {
if(![“+”, “-”, " "].includes(cleanStrArray)) {
cleanStrArray.push(strArray[i]);
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36