Learn localStorage by Building a Todo App - Step 23

Tell us what’s happening:

It keeps saying I should use “3. You should use addition assignment to set the innerHTML of tasksContainer to an empty pair of backticks.”

I am not sure if “+=” is what it means by addition assignment.

Your code so far

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

/* file: styles.css */

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

  taskData.forEach(({id, title, date, description})=>{tasksContainer.innerHTML +=''});


// 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 Edg/132.0.0.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 23

The += is correct. But if you read the exercise again, what did they say to set the tasksContainer innerHTML to? (Double check)

use template strings instead of normal strings

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