I cant figure out the solution on step 68, Seems simple enough, you have an object with properties and normally you would not call a function inside one. Any suggestions if this is correct and what needs changed inside the taskObj.
Hi. You call the removeSpecialChars function on the properties as described. I suggest you start with id and put the function around where you think makes sense. Then press submit, if the hint is that you still need to do title and description then you know you have done it right. The first one is the trickiest so keep going on that until you get the right hint.
1 Like
Please post your code so far
Make sure you only call removeSpecialChars
on the titleInput.value
part of the id
property.
We should really fix that. There was a thread about it yesterday. Edit: I made a PR for it.
Thanks everyone for the input, I’m on track now with the id part.
const taskObj = {
id: `${removeSpecialChars(titleInput.value.toLowerCase().split(" ").join("-"))}-${Date.now()}`,
title: removeSpecialChars(titleInput.value),
date: dateInput.value,
description: removeSpecialChars(descriptionInput.value),
};
2 Likes