Skip to content

Commit e6d78a0

Browse files
committed
completed task in 1.js
1 parent 7f35b33 commit e6d78a0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • Sprint-1/2-mandatory-errors

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+
/* we cannot reassign a variable that was declared using the const keyword so we will change it to the let keyword
4+
which allows us to reassign variables*/
5+
6+
let age = 33;
47
age = age + 1;
8+
console.log(age)

0 commit comments

Comments
 (0)