Skip to content

Commit 4c474e3

Browse files
committed
update error
1 parent 2fd76d2 commit 4c474e3

File tree

1 file changed

+1
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+1
-1
lines changed

Sprint-1/2-mandatory-errors/1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ age = age + 1;
55
console.log(age);
66

77
// The code above will output 34, because we are reassigning the value of age to be the current value of age plus 1. So, 33 + 1 = 34.
8-
8+
// The error in the code is that it was trying to reassign a value to a variable that was declared with let. This is not allowed in JavaScript.

0 commit comments

Comments
 (0)