Skip to content

Commit eaa7a5d

Browse files
reedited the explaination for fixing the issue.
1 parent 86b563c commit eaa7a5d

File tree

2 files changed

+2
-5
lines changed
  • Sprint-2

2 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ when the program run it give a SyntaxError: Identifier 'decimalNumber' has alrea
2020
convertToPercentage.
2121
Also using the function name decimalNumber with the console.log function will give an error because the function name should be a prober name not a Number.
2222
to fix this error we can remove the const variable declaration of decimalNumber from the function and use the function name
23-
'ConvertToPercentage' to recall the function and pass the value of the decimalNumber.CSSStyleDeclaration
23+
'ConvertToPercentage' to recall the function and pass the value of the decimalNumber declaration
2424

2525
// Finally, correct the code to fix the problem
2626
// =============> write your new code here

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ The result of multiplying 10 and 32 is undefined
1818

1919
320: the out put for the console.log inside the function
2020

21-
while the ouout the out put for the console.log function out of the function returned the string provided in the function and an undefiened because the function multibly doesn't return any value.
22-
to fix this error we need to change the console.log function inside the multiply function to return.
23-
24-
21+
to fix this issue 'return' function should be used rather than 'console.log'
2522
// Finally, correct the code to fix the problem
2623
// =============> write your new code here
2724
function multiply(a, b) {

0 commit comments

Comments
 (0)