Learn Recursion by Building a Decimal to Binary Converter - Step 31

Tell us what’s happening:

I am getting this error:
“You should log the text Inputs: and the inputs array to the console, separated by a comma.”
Please need help on how to resolve this issue?

Your code so far

I have tried all these so far:
console.log("Inputs: "+inputs );
console.log(“Inputs: “+inputs +”,”);
console.log(“Inputs: “+inputs .join(”,”));

1 Like

Your first try was the best, but instead of separating them with a comma you separated them with a plus sign.

3 Likes

Thank you so much! I didn’t think of it like this.

2 Likes