Learn Form Validation by Building a Calorie Counter - Step 61

Tell us what’s happening:

Am I not getting instructions correctly ? Any other explanation or e.g for me solve this please

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

    const currVal = item.value;
    getCaloriesFromInput.cleanInputString(item.value);
    cleanInputString(currVal);

// User Editable Region
/* file: styles.css */

Your browser information:

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

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 61

Hi,
The instructions are very clear. You just need to update the value of currVal. Change its value to be the result of calling cleanInputString with item.value. cleanInputString is a function here, call it and add item.value as its parameter.
I hope this helps!

Thank you… I didn’t follow keyword ‘update’, Sorted now

1 Like