Skip to content

Commit 8c00d6c

Browse files
committed
refactor: removed unnessary variable and return the result
1 parent c024fde commit 8c00d6c

File tree

1 file changed

+1
-3
lines changed
  • Sprint-2/1-key-errors

1 file changed

+1
-3
lines changed

Sprint-2/1-key-errors/1.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131

3232

3333
function convertToPercentage(num) {
34-
35-
const percentage = `${num * 100}%`;
36-
return percentage;
34+
return `${num * 100}%`;;
3735
}
3836

3937
console.log(convertToPercentage(0.80));

0 commit comments

Comments
 (0)