Skip to content

Commit e2942bc

Browse files
committed
format document
1 parent 8d6342a commit e2942bc

3 files changed

Lines changed: 3 additions & 10 deletions

File tree

‎Sprint-2/1-key-exercises/1-count.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ count = count + 1;
44

55
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
66
// Describe what line 3 is doing, in particular focus on what = is doing
7-
// line 3 = it is reassigning a value to the variable count
7+
// line 3 = it is reassigning a value to the variable count

‎Sprint-2/1-key-exercises/2-initials.js‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,5 @@ const firstName = "Creola";
22
const middleName = "Katherine";
33
const lastName = "Johnson";
44

5-
6-
7-
8-
95
const initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
106
console.log(initials);
11-
12-

‎Sprint-2/1-key-exercises/4-random.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ const maximum = 100;
44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
55

66
//num represents a number
7-
//lets start by (maximum-minimum +1) which the output is 100.
7+
//lets start by (maximum-minimum +1) which the output is 100.
88
//math.random()*100 returns random number between 0 and 100
99
//math.floor()it rounds a number to thier nearest integer,
1010
//at the end we add 1.
11-
console.log(num)
12-
11+
console.log(num);

0 commit comments

Comments
 (0)