Skip to content

Commit c882576

Browse files
committed
Mandatory errors 0 and 1.js is solved.
1 parent 3c9fb3a commit c882576

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
This is just an instruction for the first activity - but it is just for human consumption
2-
We don't want the computer to run these 2 lines - how can we solve this problem?
2+
We don't want the computer to run these 2 lines - how can we solve this problem?
3+
4+
// We can use a comment to prevent the computer from running these lines.

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;
44
age = age + 1;
5+
6+
console.log(age);
7+
8+

0 commit comments

Comments
 (0)