I built a decimal-to-binary converter and then, for no good reason, decided that if you typed in the number 5, it should not just show you the answer. It should show you the call stack.

Here's the actual conversion logic. Nothing fancy:

const decimalToBinary = (input) => {

if (input === 0 || input === 1) {

return String(input);