I have I tried all possible means and my code is showing “You should call removeSpecialChars on titleInput.value when assigning the id.” someone should help
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/143.0.0.0 Safari/537.36
in the code you posted you are passing `${titleInput.value.toLowerCase().split(" ").join("-")}-${Date.now()}`to removeSpecialChars, not titleInput.value, only tileInput.value should be passed to removeSpecialChars