Skip to content

Commit e96d172

Browse files
fixed prettier1.js
1 parent bed703e commit e96d172

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,9 @@
2020
// Finally, correct the code to fix the problem
2121
// =============> write your new code here
2222
function convertToPercentage(decimalNumber) {
23+
const percentage = `${decimalNumber * 100}%`;
2324

24-
const percentage = `${decimalNumber * 100}%`;
25-
26-
return percentage;
25+
return percentage;
2726
}
2827

2928
console.log(convertToPercentage(0.5));

0 commit comments

Comments
 (0)