Skip to content

Commit 1da375f

Browse files
committed
Answering th task 1.js
1 parent 8f90b4f commit 1da375f

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

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

3-
const age = 33;
3+
// in this case, we will need to replace the const keyword with let keyword as const vasriable refuses to be reassigned.
4+
let age = 33;
45
age = age + 1;
6+
7+
console.log(age);

0 commit comments

Comments
 (0)