Quizzical Solo Project - Insert Correct Answer Randomly

Hey guys, im having some serious trouble with this, i got stuck with this solo project 6 months ago, i decided to keep it aside and get to the Getting hired section first, and then came back, (maybe the new stuff learned will help in the future).

I tried with .splice, combining .map with randomIndex and .splice, but i dont seem to find the solution.

I like to knock down walls with headbutts, as a way of being, but didnt work for me this time, maybe you guys can give me some “hints”, or Don’t give me the fish, teach me how to fish better said.

How do you guys proceed when you are stuck forever?

This is the scrim: (crimson-art)

Hey @Sergio, this feeling is pretty common and I’ve ran into plenty in my programming life. You’re taking the correct direction my asking for help. Finding a solution exists so it’s satisfying when you eventually resolve it.

Have you got any progress with this project? I’ll get one of our teachers here to see if they can get some insight about the code and also other ways to handle roadblocks @Tom_Chant

Hey Roku, thanks for answering i managed to create an array of arrays with the correct answer inserted at random and select each answer radio input individually (i couldn’t before).

But, probably because it is an array of arrays i get this (picture), i tried .flatMap() but it seems
to solve nothing and just gets worse.

Next step should be get the answers rendered one per “button” (radio input), im stuck at this point.

Here is the link to the scrim.

Thank you very much for your time.

Thanks for the clarification, @Sergio. Tagging @bobziroll who taught this course so he might have more insight on how to properly move forward.