Skip to content

Commit aa750f6

Browse files
committed
correct code 1.
1 parent cdb17fe commit aa750f6

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,15 @@ console.log(decimalNumber);
2323
//the parameter of the function convertToPercentage() and the const variable is the same
2424

2525
// Finally, correct the code to fix the problem
26-
26+
// There can be two ways to fix the problem
27+
// 1. to change const variable and the name decimalNumber in line 15.
28+
// but still need to call the function convertToPercentage() in the consol.log()
29+
30+
// function convertToPercentage(decimalNumber){
31+
// const numeral = 0.5;
32+
// const percentage = `${numeral*100}%`;
33+
// return percentage;
34+
// }
35+
// console.log(convertToPercentage());
36+
37+
//

0 commit comments

Comments
 (0)