Jump to content

How to create basic javascript page with random questions?

- - - - -

  • Please log in to reply
1 reply to this topic

#1
james345

james345

    Newbie

  • Members
  • Pip
  • 1 posts
hi , i will appreciate any help on this.

i am trying to create a basic java-script webpage. with any 2 random questions.it should have a java-script containing a name.after first question, it should do a calculation depending on the answer. it should print my answer and result of the calculations.it should do something different depending on the answer to the second question( IF statement).


i will highly appreciate if any help is provided. thanks :)

#2
RhetoricalRuvim

RhetoricalRuvim

    JavaScript Programmer

  • Members
  • PipPipPipPipPipPipPipPip
  • 1,254 posts
  • Location:C:\Countries\US
Try the Math.random(), Math.round(), and Math.floor() functions (I think that's what those functions are called). Then look up a JavaScript tutorial, like on YouTube or something, and learn how to write JavaScript code.

After that, you can think of a way of doing what you need to do.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users