Building a decimal to binary converter Step 84

"# Step 84

Next, you’ll create an object to represent the first frame of your animation. Your object should have three properties or keys: inputVal, marginTop, and addElDelay.

inputVal will represent the value of the input each time your recursive function runs. marginTop will be the top margin for DOM elements you’ll add to the page. And addElDelay will be the delay between adding DOM elements to the page.

Add an object to animationData with an inputVal property set to 5, a marginTop property set to 300, and an addElDelay property set to 1000."


I am stuck. Not sure how to write this one out. Below is my code;

inputVal: 5,
marginTop: 300,
addElDelay: 1000,
animationData.length: 1

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Hi @otoya1one

You were not asked to include this:

Also, did you put the key / value pairs inside an object?

Happy coding