Learn Form Validation by Building a Calorie Counter - Step 79

Challenge: Your output.innerHTML string will need a span element. Create that, and give it a class attribute set to the surplusOrDeficit variable. Your surplusOrDeficit variable should be converted to lower case using the toLowerCase() method.

Can someone kindly point out what I am not doing right for this challenge

 output.innerHTML = `<span class='${surplusOrDeficit}.toLowerCase()'></span>`; 

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 79

I got the answer already

output.innerHTML = `<span class="${surplusOrDeficit.toLowerCase()}"></span>`;

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