Learn localStorage by Building a Todo App - Step 68

Tell us what’s happening:

I keep on getting the (removeSpecialChars when assigning the id)error. I feel like its a syntactical issue, but ive tried every combo i can think of. Your help is greatly appreciated!

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

  const taskObj = {
    id: `${removeSpecialChars("`${titleInput.value.toLowerCase().split(" ").join("-")}`")}-${Date.now()}`,
    title: removeSpecialChars("titleInput.value"),
    date: dateInput.value,
    description: removeSpecialChars("descriptionInput.value"),
  };

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36

Challenge Information:

Learn localStorage by Building a Todo App - Step 68

below is my updated code

const taskObj = {
id: ${removeSpecialChars("titleInput.value.toLowerCase().split(" ").join("-")")}-${Date.now()},
title: removeSpecialChars(“titleInput.value”),
date: dateInput.value,
description: removeSpecialChars(“descriptionInput.value”),
};

Hi @ceejay

You should call removeSpecialChars on titleInput.value when assigning the id.

For the id property, call the function only on titleInput.value

Happy coding