Forum Discussion
OwenHolt
8 years agoSuper Hero
Trivia Game - Using Variables and JavaScript to remove answered questions from the deck.
Concept Create a trivia game that would:
Randomly select a category from a list of 5, but limit the selection to only categories containing unanswered questions.
Display a random question in...
KristinAugusta
7 years agoCommunity Member
Hi Owen -
Thank you so much for your response. Again - in theory - crystal clear. I am just not able to make the actual leap to coding it. Here's my .story file. Thank you!
- OwenHolt7 years agoSuper Hero
AH HA! I see the issue!
When I originally posted this, the community "engine" kept ignoring my JavaScript code so I made each line of code a "comment". In JavaScript, any command line that begins with a double forward slash (//) is ignored. Nothing is happening in your file because every line of JavaScript code is being treated as a comment and not a command. Remove all the double slashes // in the code and it should work.