Write a function to convert number to binary? function convertToBinary( n ){ //write your code here } Login to Submit
Input: 2 Output: 10 Input: 15 Output: 1111 Input: 25 Output: 11001