Learn form validation by building a calorie counter step 40

hello guys kindly assist me on this challenge.

function addEntry() {
const targetId = ‘#’ + entryDropdown.value;
const targetInputContainer = document.querySelector(#${entryDropdown.value} .input-container);
}

Sorry, your code does not pass. Hang in there.

You should remove the targetId variable.

Could you link to the challenge in question?

remove the const targetId line

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