Skip to content

Commit ab26b8e

Browse files
authored
Update 1.js
1 parent 1ff3404 commit ab26b8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

  • Sprint-1/2-mandatory-errors

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

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

33
const age = 33;
44
age = age + 1;
5+
// ANSWER
6+
// In the solution above, 'age' is a constant variable becuse the keyword 'const' was used with it hence the value cannot change.
7+
8+
// Solution:
9+
let age = 33;
10+
let age = age + 1;

0 commit comments

Comments
 (0)