Challenge 3: Convert Decimal Number to Binary Number

Given a decimal number, convert it to a binary number.

Problem Statement

Write a function that takes a number testVariable and returns a string that is its equivalent binary number.

Input

A variable testVariable containing the decimal number.

Output

String variable that contains the equivalent binary number of the input number.

Sample Input

11

Sample Output

"1011"

Try it Yourself

Try this challenge yourself before examining the solution. Good luck!

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.