You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An alternative might be to initialise a new Question/Answer array, depending on mode
// korean to number gameexercises=numbersArray.map(d=>({question: d.korean,answer: d.value}))// sino-korean to number gameexercises=numbersArray.map(d=>({question: d.sino,answer: d.value}))// number to korean guessingexercises=numbersArray.map(d=>({question: d.value,answer: d.korean}))// number to sino-korean guessingexercises=numbersArray.map(d=>({question: d.value,answer: d.sino}))
[{value: 1, korean: "하나", sino: "일"}, ...]
I think the find method is all I need to query such an array depending on the game mode.
https://www.w3schools.com/jsref/jsref_find.asp
The text was updated successfully, but these errors were encountered: