Skip to content

Commit 1d34e47

Browse files
committed
Fix percentage formatting
1 parent 53bf711 commit 1d34e47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • Sprint-3/1-key-errors

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ console.log(decimalNumber);*/
2121
// Finally, correct the code to fix the problem
2222
// =============> write your new code here
2323
function convertToPercentage(decimalNumber) {
24-
const percentage = `${(decimalNumber * 100).toFixed(1)}%`;
24+
const percentage = `${decimalNumber * 100}%`;
2525

2626
return percentage;
2727
}

0 commit comments

Comments
 (0)