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