Skip to content

Commit cdb17fe

Browse files
committed
Interpret the error message
1 parent 34272f8 commit cdb17fe

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • Sprint-3/1-key-errors

‎Sprint-3/1-key-errors/1.js‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ function convertToPercentage(decimalNumber) {
1919

2020
console.log(decimalNumber);
2121

22-
// =============> write your explanation here
22+
// the error was syntaxError it is stating decimalNumber has already been declared
23+
//the parameter of the function convertToPercentage() and the const variable is the same
2324

2425
// Finally, correct the code to fix the problem
25-
// =============> write your new code here
26+

0 commit comments

Comments
 (0)