Javascript Tutorial – Using the prompt() and Number() functions


Original source


10 responses to “Javascript Tutorial – Using the prompt() and Number() functions”

  1. Im new to javascript. I have to use prompt to ask a series of 10 yes or no questions. Each question is 5 points. How do I add them up? The user will input 'yes' meaning 5 points and 'no' being 0 points. How do I go about that? How would I make the word 'yes' translate into 5 points in the code and then add up all the answers of the 10 questions?

  2. thanks for your video , you provide an easy way to learn , however please i want to set a factorial function like 5!=5*4*3*2*1 , i found on stackoverflow  many functions ,but are really difficult to understand , would you like please to give us a simple solution regarding factorial please , and thank you by the way

Leave a Reply