Convert Decimal Number to Binary in JavaScript
The below JavaScript code will convert Decimal input to its equivalent Binary value. This can be done by using a pre defined function toString().Example Code for Decimal to Binary Conversion
var decimal = parseInt(decimal);
var binary = decimal.toString(2);
