Skip to content

Commit 0420930

Browse files
committed
Comment changing the declaration keyword from const to let will fix the error
1 parent e2d0541 commit 0420930

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

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

33
const age = 33;
44
age = age + 1;
5+
6+
// unlike let, const variables cannot be reassigned once created.

0 commit comments

Comments
 (0)