Skip to content

Commit fbdf964

Browse files
committed
compleat
1 parent a2714eb commit fbdf964

File tree

5 files changed

+10
-15
lines changed

5 files changed

+10
-15
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,5 @@ 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-
8-
9-
// Line 3 takes the initial value of count and adds 1 to it
10-
// the = "count + 1 rewrites the count variable to the newly calculated value"
7+
// Line 3 takes the initial value of count and adds 1 to it
8+
// the = "count + 1 rewrites the count variable to the newly calculated value"

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ let lastName = "Johnson";
66
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
77

88
let initials = `${firstName.charAt(0)}${middleName.charAt(0)}${lastName.charAt(0)}`;
9-
console.log(initials)
10-
11-
// https://www.google.com/search?q=get+first+character+of+string+mdn
9+
console.log(initials);
1210

11+
// https://www.google.com/search?q=get+first+character+of+string+mdn

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

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

33
let age = 33;
4-
age = age + 1;
5-
console.log(age);
4+
age = age + 1;
5+
console.log(age);
66

7-
// it needed to be a variabal not a constant
8-
9-
7+
// it needed to be a variabal not a constant

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
// what's the error ?
33
const cityOfBirth = "Bolton";
44
console.log(`I was born in ${cityOfBirth}`);
5-
// the constant was declared after the sentence that used it
5+
// the constant was declared after the sentence that used it

Sprint-1/3-mandatory-interpret/3-to-pounds.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ console.log(`£${pounds}.${pence}`); // 397.72
3535
// 9.const pounds = paddedPenceNumberString.substring( 0, paddedPenceNumberString.length - 2);
3636
// gets the ammout of pounds by making a sub string that starts at the firts character (0) to the paddedPenceNumberString length -2 to exclued the last 2 characters (the p)
3737

38-
// 10.
38+
// 10.
3939
// 18.console.log(`£${pounds}.${pence}`);
40-
// gives the console the result using a string literal
40+
// gives the console the result using a string literal

0 commit comments

Comments
 (0)