Learn localStorage by Building a Todo App - Step 31

Tell us what’s happening: Can someone help me with this. I’ve viewed the answer and what I have written is correct but it’s telling me I’m wrong.

You should move taskData.forEach() and its content into the updateTaskContainer() function.

Your code so far


The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.

You will need to take an additional step here so the code you wrote presents in an easy to read format.

Please copy/paste all the editor code showing in the challenge from where you just linked.

const updateTaskContainer= () => {
    ({ id, title, date, description }) => {
        (tasksContainer.innerHTML += `
        <div class="task" id="${id}">
          <p><strong>Title:</strong> ${title}</p>
          <p><strong>Date:</strong> ${date}</p>
          <p><strong>Description:</strong> ${description}</p>
          <button type="button" class="btn">Edit</button>
          <button type="button" class="btn">Delete</button>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.1 Safari/605.1.15

Challenge Information:

Learn localStorage by Building a Todo App - Step 31

You didn’t quite copy the taskData.forEach() correctly. You are missing something. Look in the Console pane. You should be seeing a syntax error.