You should assign the result of your cleanInputString call to your currVal variable.
I keep getting this error message, please I need help to be able to resolve this
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const currVal = item.value;
cleanInputString(item.value);
cleanInputString = currVal;
// 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/133.0.0.0 Safari/537.36
Challenge Information:
Learn Form Validation by Building a Calorie Counter - Step 61
You just need to change the current currVal variable declaration to update it. You have the code you need to complete this task, but it’s in the wrong place.
You want currVal to be the result of calling the cleanInputString() function. It might be easier to Reset this step and start over since you have more code there than you need.
I have been looking at my code for like an hour now, but just reading the question and comparing it to what you just asked me now, I was able to pass the step.
sometimes, one need to read the question over and over again… you solution might be looking at you
thank you so much, I appreciate.