Learn Form Validation by Building a Calorie Counter - Step 47

Tell us what’s happening:

I dont understand why it does not take label as element and why it is incorect when it comest to label text

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

let label = `Entry ${entryNumber} Name`;

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36 OPR/114.0.0.0

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 47

keep adding stuff to HTMLString, do not create new variables

1 Like

Thank you verry much, i finally understood!