Skip to content

Commit 2b12a34

Browse files
committed
Change age from constant to variable for reassignment and update comments for clarity
1 parent afca59a commit 2b12a34

File tree

1 file changed

+5
-1
lines changed
  • Sprint-1/2-mandatory-errors

1 file changed

+5
-1
lines changed

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

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

3-
const age = 33;
3+
let age = 33; // changed from constant to variable so that value can be reassigned
44
age = age + 1;
5+
console.log(age); // should print 34 running testing
6+
7+
8+
//after testing can confirm age variable is now 34.

0 commit comments

Comments
 (0)