Currently, I am working on a todolist project from w3schools, which can be found at: https://www.w3schools.com/howto/tryit.asp?filename=tryhow_js_todo
Here is the output of my work:
After clicking the Add button, an error message appeared saying:
"Uncaught SyntaxError: Unexpected token }" was encountered on line 124.
Surprisingly, there is only a closing div tag </div> on line 124, so it's puzzling why the syntax error occurred. Below is the complete code snippet:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" name="viewport" content="width=device-width, initial-scale=1">
<title></title>
<style type="text/css">
/* CSS styles go here */
</style>
</head>
<body>
<!-- HTML content goes here -->
<script type="text/javascript">
// JavaScript code goes here
</script>
</body>
</html>
In addition, another error occurred as follows:
'Uncaught ReferenceError: newElement is not defined' was reported on line 123.
I have addressed and rectified this issue now.