0
Can someone please help me in JavaScript
I need a programme in Which there should be a code about random question generater
2 Answers
0
It is very easy,
First create an array of strings which contains all your questions. Let us say Qarray
Let's say you have 100 questions in that array.
Then use Math.random() method of JavaScript to generate a random index.
Math.floor((Math.random() *Â 100) +Â 1);
Suppose this generates index 56,
Now simply print Qarray[56]
I hope it was helpful.
0
suppose we have 3 questions
1. what is network id of ip address 102.155.0.0/24 ?
2. what is broadcast id of ip address 233.166.244.0/30?
3. what is subnet class of ip address 255.255.0.0?
answers I have to put with these and like these 3 questions I have 1000 so can you help me