Skip to content

Commit 2589dc7

Browse files
good
1 parent ad59545 commit 2589dc7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

prep/test.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
3+
function convertToPercentage(decimalNumber) {
4+
const percentage = `${decimalNumber * 100}%`;
5+
return percentage;
6+
}
7+
const output1 = convertToPercentage(0.5);
8+
const output2 = convertToPercentage(0.231);
9+
console.log(output1);
10+
console.log(output2);

0 commit comments

Comments
 (0)