Skip to content

Commit c77d6f3

Browse files
fix: update comments to clarify the use of const and suggest using let for reassignment
1 parent 6b61b4c commit c77d6f3

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
const age = 33;
44
age = age + 1;
55
//the "age" variable has been declared with a const and already assigned a value and it can not
6-
// be reassigned another value because of the "const"
6+
// be reassigned another value because of the "const"
7+
// "age" should be declared with "let" to be able to change it's value

0 commit comments

Comments
 (0)