i need help here, i got stuck about this last step,
i donno how to solve it really
i tried to observe the others’s issues and the replies to get any hint
i got an error in the console it says type error can’t read properties of undefined when i try press the convert button
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const updateResultsList = () => {
resultList.innerHTML = "";
units.forEach(unit => {
if(unit != unitToConvert.value) {
let listItem = document.createElement('li')
let convertedFunc = processIngredient(unitToConvert.value)(unit)(Number(ingredientQuantity.value))
listItem.textContent = `${ingredientName.value}: ${convertedFunc.toFixed(2)} ${unit}`
resultList.appendChild(listItem)
// listItem.textContent += text
}
})
}
// 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/143.0.0.0 Safari/537.36