Tell us what’s happening:
On step 52, when I replace the innerHTML with the insertAdjacentHTML()-Method, I either get the hint " You should call the insertAdjacentHTML()
method of targetInputContainer
." if I use the insertAdjacentHTML() without the brackets, or nothing at all if I include the brackets. Nothing else changed otherwise in the code.
Looking up the insertAdjacentHTML method itself, I find results that say that a position is required; is that missing?
### Your code so far
targetInputContainer.insertAdjacentHTML() += HTMLString;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn Form Validation by Building a Calorie Counter - Step 52