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

Tell us what’s happening:

I’m not sure why this isn’t working. I’ve tried both temperate literal form and just calling the function but I’m getting this error message. “You should set the textContent property of result equal to the string returned by your decimalToBinary() function.”

Your code so far

result.textContext = decimalToBinary(parseInt(numberInput.value));

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0

Challenge Information:

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

You have a typo here

2 Likes

oh it’s textContent not textContext thanks!

1 Like