toBinary javascript string code example
Example: string to binary javascript
// string to binary
parseInt(num.toString(2));
// binary to string
parseInt(num.toString(2), 2);
// string to binary
parseInt(num.toString(2));
// binary to string
parseInt(num.toString(2), 2);