Skip to content

Commit 0fd575d

Browse files
committed
done 1.js
1 parent 22d3cf7 commit 0fd575d

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Sprint-1/errors/0.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
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?
1+
// 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?

Sprint-1/errors/1.js

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

3-
const age = 33;
3+
// to run this file we need to go in the root and once we are in the file run, node 1.js eg => /Sprint-1/errors node 1.js
4+
5+
cost age = 33; // this line is not working because const does not allow you change the data so we can change to let.
46
age = age + 1;
7+
console.log(age);
8+
9+
10+
let age = 33;
11+
age = age + 1;
12+
console.log(age);
13+

0 commit comments

Comments
 (0)