Skip to content

Commit 3fdce9e

Browse files
committed
2-mandatory-debug formatted prettier
1 parent eabe4c7 commit 3fdce9e

3 files changed

Lines changed: 3 additions & 4 deletions

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function multiply(a, b) {
1010
console.log(`The result of multiplying 10 and 32 is ${multiply(10, 32)}`);
1111
*/
1212

13-
1413
// =============> write your explanation here
1514

1615
//We need to return a * b so the result can be used where the function is called.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);
1414
// Finally, correct the code to fix the problem
1515
// =============> write your new code here
1616
function sum(a, b) {
17-
return a + b
18-
};
17+
return a + b;
18+
}
1919

2020
console.log(`The sum of 10 and 32 is ${sum(10, 32)}`);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ console.log(`The last digit of 806 is ${getLastDigit(806)}`);
4242

4343
// This program should tell the user the last digit of each number.
4444
// Explain why getLastDigit is not working properly - correct the problem
45-
//Function was not working correctly as it was returning num slice for const num that was assigned before the function, function should use parameter num to work correctly.
45+
//Function was not working correctly as it was returning num slice for const num that was assigned before the function, function should use parameter num to work correctly.

0 commit comments

Comments
 (0)