Skip to content

Commit b88af63

Browse files
committed
Create DecimalToBinary.js
1 parent 326181d commit b88af63

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
function decimalToBinary(number decimal){
2+
return (decimal >>> 0).toString(2);
3+
}
4+
5+
console.log(decimalToBinary(17));

0 commit comments

Comments
 (0)