Skip to content

Commit 772f314

Browse files
committed
replace const with let and write single line comment correctly
1 parent ed5a33c commit 772f314

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

2-
const age = 33;
2+
let age = 33;
33
age = age + 1;
44

5-
// There is a constant variable age, which is fixed and it's value cannot be reassigned.//
6-
// If we want to change the value of age, we have to use let instead of const. //
5+
// There is a constant variable age, which is fixed and it's value cannot be reassigned.
6+
// If we want to change the value of age, we have to use let instead of const.

0 commit comments

Comments
 (0)