Learn Form Validation by Building a Calorie Counter - Step 47

Tell us what’s happening:

Hello! I’ve looked up lots of diff possibilities and even solutions but my code still doesn’t work. I kinda wonder if it’s a bug? Since the course is still in beta, idk, could happen maybe?

Thank you for anyone kind enough to answer me, I’d really appreciate it

Your code so far

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

/* file: styles.css */

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

function addEntry() {
    const targetInputContainer = document.querySelector(`#${entryDropdown.value} .input-container`);
    const entryNumber = targetInputContainer.querySelectorAll('input[type="text"]').length;
    const HTMLString = `<label for="${entryDropdown.value}-${entryNumber}-name">Entry ${entryNumber} Name</label>`
}

// User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0

Challenge Information:

Learn Form Validation by Building a Calorie Counter - Step 47

issue with the tests

move the label down the next line to pass

Thank you very much !

1 Like