Skip to content

Commit 41e9a7a

Browse files
debug2604debug2604
authored andcommitted
1.js old code deleted
1 parent f47f36b commit 41e9a7a

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,6 @@
55

66
// Try playing computer with the example to work out what is going on
77

8-
//function convertToPercentage(decimalNumber) {
9-
//const decimalNumber = 0.5;
10-
//const percentage = `${decimalNumber * 100}%`;
11-
12-
//return percentage;
13-
//}
14-
15-
//console.log(decimalNumber);
16-
178
// =============> decimalNumber first declared as parameter, it cannot be reassigned as const.
189
// Also, console.log try to run decimalNumber as a variable while decimalNumber be assigned as a parameter.
1910
// Finally, correct the code to fix the problem

0 commit comments

Comments
 (0)