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
https://www.freecodecamp.org/learn/full-stack-developer/workshop-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.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.