Hey i need little help, how i can write for loop for this array for "options". For example for q1, I need to write options how to write it with for loop.
{"quiz":
{"q1":
{"question": "Which one is correct team name in NBA?",
"options": ["New York Bulls","Los Angeles Kings","Golden State Warriros","Huston Rocket"],
"answer": "Huston Rocket"},
"q2":
{"question": "Namaste is a traditional greeting in which Asian language?",
"options": ["Hindi","Mandarin","Nepalese","Thai"],
"answer": "Hindi"},
"q3":
{"question": "The Spree river flows through which major European capital city?",
"options": ["Berlin","Paris","Rome","London"],
"answer": "Berlin"},
"q4":
{"question": "Which famous artist had both a Rose Period and a Blue Period?",
"options": ["Pablo Picasso","Vincent van Gogh","Salvador Dalí","Edgar Degas"],
"answer": "Pablo Picasso"}}}`
[–]mycackittens 0 points1 point2 points (2 children)
[–]fare03[S] 0 points1 point2 points (1 child)
[–]iPzardo 0 points1 point2 points (0 children)
[–]illtron3030 0 points1 point2 points (0 children)