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

Tell us what’s happening:

I cant for the life of it figure out where to put msg in the code

Your code so far

<!-- file: index.html -->

/* file: script.js */
// User Editable Region

  
  {
    
    inputVal: 1,
    addElDelay: 2000
  }

// User Editable Region
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 Edg/132.0.0.0

Challenge Information:

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

Welcome to the forum @saswat.parida

Add the property msg to the animation object at the top of the stack, and set its value to an empty string.

Add the msg key/value pair after the last one in the object that is visible in the editable region.

Happy coding

I tried adding the value to the editable region

{

inputVal: 1,
addElDelay: 2000,
msg = "",  

}
but still it fails,
i have tried to add it to where ever possible but still the case fails.

Does the syntax match the other two key / value pairs?

correct me if i’m wrong but i think it matches

ok I figured it out I was giving it the wrong string literal and = rather than :

1 Like