Trial

while (true) { let z = prompt(‘Type D for Decimal conversion,\nB for Binary conversion,\nO for Octal conversion,\nH for Hexadecimal conversion\n’).toUpperCase(); console.log(); function dash() { console.log(‘—————‘); } if (z === ‘D’) { let a = prompt(‘Enter Decimal value= ‘); if (!isNaN(a)) { a = parseInt(a); let b = a.toString(2); let c = a.toString(8); let d = …

Trial Read More »