Lil' Bits

Warmup

Write a function that takes a non-negative integer as an argument and returns its binary representation as a string.

For example:

convertToBinary(12) // "1100"
convertToBinary(0) // "0"
convertToBinary(5) // "101"