Skip to content

Commit 87d18e1

Browse files
authored
Fix age reassignment to increment by 1
1 parent 87532a7 commit 87d18e1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • Sprint-2/2-mandatory-errors

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// trying to create an age variable and then reassign the value by 1
22

33
let age = 33;
4-
age = 1;
4+
age = age + 1;
5+
console.log(age)

0 commit comments

Comments
 (0)