javascript: binary to int, hex, decimal - quick number conversion with one line of code

Here is code snippet for converting a number to its binary notation:

JavaScript's toString function takes the base to which the function should convert a string to.... this makes the JavaScript console a great choice for tinkering with binary operations.