Advertisement
whitestarrr

Untitled

Oct 28th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. function magic(input) {
  2. let numberToHex = parseInt(input[0]).toString(16);
  3. let numberToBi = parseInt(input[0]).toString(2);
  4. console.log(numberToHex.toString().toUpperCase())
  5. console.log(numberToBi)
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement