Learn localStorage by Building a Todo App - Step 30, 31

Tell us what’s happening:

Seriously… what the hell??? I’m going insane. These two tests are ridiculous and you guys should revise them, because honestly, what?

Your code so far

const updateTaskContainer = () => {
	taskData.forEach(({ id, title, date, description }) => {
		tasksContainer.innerHTML += `
        <div id='${id}' class='task'>
            <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>
        </div>
        `;
	});
};

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0

Challenge Information:

Learn localStorage by Building a Todo App - Step 30, 31

1 Like

You do not need to write the code again, just copy the code/move it into the functions you are asked to create.

For Step 31, the forEach you should be moving looks like this.

taskData.forEach(
  ({ 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>
      </div>
    `)
  }
);
1 Like

I got confused on that one also!
so to solve Step 30, you need this:

Mod edit: solution code removed

@codelikeagirl91

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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