I’m not sure what I’m missing here?
function addEntry() {
const targetId = ‘#’ + entryDropdown.value;
const targetInputContainer = document.querySelector(${targetID} .input-container
);
}
I’m not sure what I’m missing here?
function addEntry() {
const targetId = ‘#’ + entryDropdown.value;
const targetInputContainer = document.querySelector(${targetID} .input-container
);
}
Are you sure you need to interpolate targetID?
No, I’ve tried a couple different things but this is what I got from the hint:
“Your template literal should have the value {targetId} .input-container
.”
template literals are the backticks so you should wrap the content inside the parentheses with them
I just realized I had capitalized the ‘D’ in ‘targetID’. I don’t know how many times I retyped that and repeated the same issue.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.