Learn localStorage by Building a Todo App - Step 24

Tell us what’s happening:

i should create a div element with the class of task i did that but the test wont pass

Your code so far

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

/* file: styles.css */

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

<div id=${id} class="task"></div>          

// 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/124.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 24

i figured it out already

Good job, Doctor. Can you provide sny help?

I have

<div class="task" id=${id}></div>

with being told that I need to provide an id of ${id}, which I did. Maybe it is not literal (replace id with something)?

Hi I just had the same issue. I solved it with ${id} wrapped in ‘’. Don’t know why actually so i will do some research but it passed after.

because when you write html you need the quotes around attribute values

It worked with double quotes. Thank you.

You need to wrap your id in quotes.
Hope it helps

Just repeat what you did in the class attribute, check what you ommitted