Tell us what’s happening:
i have so many try for this step but any try not be success
Your code so far
<!-- file: index.html -->
/* file: styles.css */
/* file: script.js */
// User Editable Region
const taskObj = {
id: `${removeSpecialChars(titleInput.value)}.${toLowerCase().split(" ").join("-")}-${Date.now()}`,
title: titleInput.value,
date: dateInput.value,
description: descriptionInput.value,
};
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Challenge Information:
Learn localStorage by Building a Todo App - Step 68
ILM
March 25, 2025, 9:46am
2
don’t you think this toLowerCase
on its own is weird? it is usually used on a string
Doing this code didn’t make any difference
ILM
March 25, 2025, 9:53am
5
what code did you do? I was pointing out an issue with your code, not giving a solution
Okay, I misunderstood. You provided the solution. Sorry!
ILM
March 25, 2025, 9:58am
7
what code have you tried? do you have more questions?
i have try this code id: ${removeSpecialChars((titleInput.value).toLowerCase().split(" ").join("-"))}-${Date.now()}
ILM
March 25, 2025, 10:01am
9
that’s better
but consider what the tests tell you
what errors from the tests are you seeing?
I am seeing these errors when I am testing.
Sorry, your code does not pass. Don’t give up.
You should call removeSpecialChars
on titleInput.value
when assigning the id
.
ILM
March 25, 2025, 10:06am
11
it looks like you have more than that as argument
a lot more than that
If you have a solution to this problem, please help me.
ILM
March 25, 2025, 10:15am
13
do you understand that the test is saying that you should only pass titleInput.value
to removeSpecialChars
but you are passing (titleInput.value).toLowerCase().split(" “).join("-")
instead?
Yes, I understand. I have tried a lot, but I still don’t get it.
ILM
March 25, 2025, 10:19am
15
what code have you tried to change the argument of removeSpecialChars
?
i have try this code id: `${removeSpecialChars((titleInput.value))}
ILM
March 25, 2025, 10:34am
17
try removing also the extra ()
, but the rest of the code should still be present, only not as argument of removeSpecialChars
Try this, you needed to add lower, split, jpin after you used removeSpecialChars() method.
Mod edit: code removed.
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. How to Help Someone with Their Code Using the Socratic Method
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.