Skip to content

Commit 8af030a

Browse files
committed
completed 1.js with comments
1 parent b7acb73 commit 8af030a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ We don't want the computer to run these 2 lines - how can we solve this problem?
55
// We comment it out,
66
// We can do this by using a two forward slashes ("//")if it is on one line
77
//or we use one forward slash with an asterisk at the start("/*") and an asterisk
8-
// and a forward slash at the end ("*/") for block commenting
8+
// and a forward slash at the end ("*/") for block commenting

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,10 @@
22

33
const age = 33;
44
age = age + 1;
5+
6+
//Answer:
7+
//we cannot re-assign variables with "const".
8+
// We have use "let". let allows the variable to be re-assigned.
9+
10+
let age = 33;
11+
age = 33 + 1;

0 commit comments

Comments
 (0)