Learn Form Validation by Building a Calorie Counter - Step 21

Tell us what’s happening:

I am unsure what the issue is, i am getting an error code, i have tried both looking on the forum and google and i cant find what im doing incorrect.

Your code so far

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

/* file: styles.css */

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

function cleanInputString(str) {
  const strArray = str.split('');
  const cleanStrArray = [];
  for (let i = 0; i < strArray.length; i++) {

  }

// 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/122.0.0.0 Safari/537.36

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 21

what error are you getting?

are you sure you have all your closing brackets in the right place?

oh thank you! its always a punctuation. that was the answer