Learn localStorage by Building a Todo App - Step 37

Ok I’ll try again basically says I still need to add moved content to the new function here’s my updated code

const updateTaskContainer = () => {
 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>
      `
    }
  );

please answer this question

“move” is different from “copy”

Yes I copied and pasted the code as said.

but the challenge ask you to move the code, not copy it
do you understand the difference?

Maybe there’s a misunderstanding it sounds to me like using the same code copy it and add it to a new function am I right?

if you move something the thing is not present in the starting place anymore
that is the difference between COPY and MOVE

Dough it happens lol

I’ve revised the steps its still failing to pass the task. There’s a syntax error for passing this task. I’ve moved and updated the new function but it’s still wrong.

onst updateTaskContainer  = () => {
  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>
      `
    }
  );

const there’s a pasting error.

The above code is missing function’s closing curly bracket } in the end

what syntax error are you getting?

Sorry, your code does not pass. You're getting there.

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

I’ve done everything right I don’t know what’s missing.

that’s not a syntax error, you said there is a syntax error

you should share all the js code

Can I reveal my quiz results once I’ve completed my assessments?

I am not sure I understand your question, can you add more details?

Can I see my quiz results after finishing the Full Stack Developer curriculum?

quizzes are pass/fail, you can know at a glance which ones you have already passed

How does it tell me straight after completing the quizzes?

if you have completed the quiz you passed it (it means you got at least 18 of 20 questions right)