In reference to running the jsTodoList.html file:
Looks like the function "addTask()" is malformed. Because the outside the function, the app is trying to reference function-scoped variable called "newTask" outside of the function. So whenever attempting to add a task with value "Take out trash", the console logs this error:
Uncaught ReferenceError: newTask is not defined
at jsTodoList.js:17:26
With the help of AI, this app should be pretty quick to fix. It looks like the main logic is there.
In reference to running the
jsTodoList.html
file: Looks like the function "addTask()" is malformed. Because the outside the function, the app is trying to reference function-scoped variable called "newTask" outside of the function. So whenever attempting to add a task with value "Take out trash", the console logs this error:With the help of AI, this app should be pretty quick to fix. It looks like the main logic is there.