Hey Guys a few days back i had posted a thread
The Thread
we build a Js quiz basically that .
- would ask the user what level he wants to play
- Once the user selects the Level , the questions are randomized and presented to the user .
here is what we have so far :
Js fiddle
Well i have a small question , actually , somebody had told me that its possible to generate the questions automatically instead of hand typing it into an array ?
Now i am using an array to store and display questions and answers , somthing like you could see below :
-
var questionseasy = [ ['Whats is 2 + 2', '4'], ['What is 3 * 3', '9'], ['What is 5 * 5', '25'] ];
now if you look closely at the array there are NUMBERS and OPERATORS , now my question here
is Once again can the Numbers and operators be generated automatically instead of being
stored in an array ? I don't want somebody to code this for me , just tell me how it is possible
(Try and be a bit elaborate though :D )and i will go and try do it , if i can't , i'll come back . Thank you . Regards . Gautam.