Tell us what’s happening:
The tests tell me that I need to use the template literal in my querySelector method, which I am. It also says it should have the value of ${targetId} .input-container
which it does. I can’t figure out why it keeps failing.
Any help is appreciated, thank you.
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
function addEntry() {
const targetId = '#' + entryDropdown.value;
const templateLiteral = `${targetId} .input-container`;
const targetInputContainer = document.querySelector(templateLiteral);
}
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Challenge Information:
Learn Form Validation by Building a Calorie Counter - Step 42