Skip to content

Commit 16c3259

Browse files
committed
add explanation to mandatory-errors/1
1 parent 0d9eb1d commit 16c3259

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,7 @@
22

33
let age = 33;
44
age = age + 1;
5+
6+
// const are variables which value cannot change
7+
// let is a variable which value can be updated
8+
// to fix the error I modified the variable declaration and used let instead of const

0 commit comments

Comments
 (0)