I need help figuring out how to append a list item to resultList.
I don’t think I have the correct syntax for a lot of this. It is harder because the tests are not helpful. There is only one and so I don’t know which one I am doing wrong.
My code so far
<!-- file: index.html -->
/* file: script.js */
// User Editable Region
const updateResultsList = () => {
resultList.innerHTML = "";
if(units !== unitToConvert.value){
baseUnit = newUnit;
resultList = `<nl>${ingredient}: ${quanitity} ${unit}</nl>`
}
}
// User Editable Region
/* file: styles.css */
My 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