Skip to content

Commit 6628bfe

Browse files
committed
Updated as per the review done
1 parent e4d1c9e commit 6628bfe

File tree

10 files changed

+11
-14
lines changed

10 files changed

+11
-14
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ function capitalise(str) {
1717
str = `${str[0].toUpperCase()}${str.slice(1)}`;
1818
return str;
1919
}
20-
console.log(capitalise("newbell"));
20+
console.log(capitalise("newbell"));

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ function convertToPercentage(decimalNumber) {
2323

2424
return percentage;
2525
}
26-
27-
console.log(convertToPercentage (0.5));
26+
console.log(convertToPercentage (0.5));

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,4 @@
1818
// =============> write your new code here
1919
function square(num) {
2020
return num * num;
21-
}
22-
21+
}

Sprint-2/2-mandatory-debug/0.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@
1515
function multiply(a, b) {
1616
return a * b;
1717
}
18-
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
18+
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,3 @@ console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
1414
function sum(a, b) {
1515
return a + b;
1616
}
17-

Sprint-2/2-mandatory-debug/2.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// return num.toString().slice(-1);
1010
//}
1111

12-
console.log(`The last digit of 42 is ${getLastDigit(42)}`);
13-
console.log(`The last digit of 105 is ${getLastDigit(105)}`);
14-
console.log(`The last digit of 806 is ${getLastDigit(806)}`);
12+
// console.log(`The last digit of 42 is ${getLastDigit(42)}`);
13+
// console.log(`The last digit of 105 is ${getLastDigit(105)}`);
14+
// console.log(`The last digit of 806 is ${getLastDigit(806)}`);
1515

1616
// Now run the code and compare the output to your prediction
1717
// =============> write the output here - The output shows 3 for all

Sprint-2/3-mandatory-implement/1-bmi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ function calculateBMI(weight, height) {
1818
const bmi = weight / (height * height)
1919
return Number(bmi.toFixed(1));
2020
// return the BMI of someone based off their weight and height
21-
}
21+
}

Sprint-2/3-mandatory-implement/2-cases.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ function toUpperSnakeCase(str) {
1818
return str
1919
.toUpperCase()
2020
.replaceAll(" ","_");
21-
}
21+
}

Sprint-2/3-mandatory-implement/3-to-pounds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ function toPounds(penceString) {
4545
console.log(toPounds("399p")); // £3.99
4646
console.log(toPounds("50p")); // £0.50
4747
console.log(toPounds("5p")); // £0.05
48-
console.log(toPounds("12345p")); // £123.45
48+
console.log(toPounds("12345p")); // £123.45

Sprint-2/4-mandatory-interpret/time-format.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function formatTimeDisplay(seconds) {
2828

2929
// c) What is the return value of pad is called for the first time?
3030
// =============> write your answer here
31-
//00
31+
//"00"
3232

3333
// d) What is the value assigned to num when pad is called for the last time in this program? Explain your answer
3434
// =============> write your answer here

0 commit comments

Comments
 (0)