Build a Recipe Ingredient Converter - Step 17

Tell us what’s happening:

solve thses problem. Give me correct answer to these.

Your code so far

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

/* file: styles.css */

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

const updateResultsList = () => {
  resultList.innerHTML = "";
 const ingredient = ingredientName.value.trim();
  const quantity = parseFloat(ingredientQuantity.value);
  const currentUnit = unitToConvert.value;
   if (!ingredient || isNaN(quantity) || !units.includes(currentUnit)) {
    resultList.innerHTML = "<li>Please enter valid values for all fields</li>";
    return;
  }
 
    
    
}

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

Challenge Information:

Build a Recipe Ingredient Converter - Step 17

it is not allowed to give an answer. What are you stuck with?

Please stop asking for the answer. Explain what it is that you don’t understand.