Hello everyone,
I couldn’t find the mistake in this code. I could only find that they add this property at the end of the code with (); however, the first task of embedding the specific properties makes the situation sweaty for me. If somebody comments on the issue when clarifying the reasons, he will save my hours.
Thanks in advance, happy coding!
const taskObj = {
id: `${removeSpecialChars(titleInput.value).toLowerCase().split(" ").join("-")}-${Date.now()}`,
title: titleInput.value.removeSpecialChars();
date: dateInput.value,
description: descriptionInput.value.removeSpecialChars();
};