Learn localStorage by Building a Todo App - Step 9

i dont know the problem. my code works on preview but not still not pass. maybe error on syntax but i’m not sure.

mycode so far:

discardBtn.addEventListener("click", () => {




Smart quotes are a problem in Javascript - you should use either '' or "" not “”

can you give the link to the step?

I altered your post to include the link to the challenge. Please make sure to include this when asking questions on the forum :+1:

As to your issue, it looks like your formatting is causing issues for the test

move your last curly brace to the next line to pass like this

1 Like

I created an issue for it here since you technically got it right just your formatting didn’t match what the tests were expecting



thanks for the help. it works. :grin:

1 Like