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>
`
}
);
ILM
January 13, 2025, 3:58pm
24
please answer this question
“move” is different from “copy”
Yes I copied and pasted the code as said.
ILM
January 13, 2025, 3:59pm
26
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?
ILM
January 13, 2025, 4:01pm
28
if you move something the thing is not present in the starting place anymore
that is the difference between COPY and MOVE
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.
pm9pfnpvws:
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>
`
}
);
The above code is missing function’s closing curly bracket }
in the end
ILM
January 14, 2025, 8:31am
33
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.
ILM
January 14, 2025, 1:27pm
36
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?
ILM
April 13, 2025, 7:14pm
38
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?
ILM
April 14, 2025, 2:08pm
40
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?
ILM
April 14, 2025, 2:25pm
42
if you have completed the quiz you passed it (it means you got at least 18 of 20 questions right)