function convertToBinary(num) { var result = num.toString(2); var i = 8- result.length; let str0 = '' for(;i>0;i--){ str0 += '0' } return str0 + result; }
function convertToBinary(num) { var result = num.toString(2); var i = 8- result.length; let str0 = '' for(;i>0;i--){ str0 += '0' } return str0 + result; }