Learn Form Validation by Building a Calorie Counter - Step 28

Tell us what’s happening:

I don’t know what to do from here.

Your code so far

// User Editable Region

function cleanInputString(str) {
  const regex = /[+-\s]/g;
  regex, ""(str.replace);
}

// User Editable Region

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 28

look at the example on how to use the replace method

"hello".replace(/l/g, "1");

this will return he11o

you need to return the result of calling replace on str, using the regular expression in the regex variable, and replacing with an empty string