Convert Integer to Base-2


covert.js
var number = 15;
number.toString(2);  // will returns "1111"

Share This Post