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

What’s happening:

The instruction is:
Log the text Inputs: , followed by a comma, followed by the inputs array to the console.

The instruction to complete this step seems straightforward but it doesn’t pass even after writing the code. I have even tried adding and removing spaces at some parts of the string logged to the console, but it still fails. Please tell me what I’m doing wrong.

My code so far

 console.log(`Inputs: ,${inputs}`) ;

Challenge Information: Learn Recursion by Building a Decimal to Binary Converter - Step 31 https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures-v8/learn-recursion-by-building-a-decimal-to-binary-converter/step-31

​​

​​

it doesn’t want a template literal, but to give two arguments to console.log(), one a string, the other a variable

2 Likes

Thanks, but that wasn’t very obvious from the instruction - at least, not to me.

console.log("Inputs: ", inputs);

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.