Intro to Programming in Javascript: A Game Example

This quick intro to Javascript requires no Javascript programming experience, but some HTML experience will be helpful (go to for a good interactive primer). You’ll build a simple, but fun, Guessing Game – guess a number between 1 and 100 to win!


Piar Aly says:

Great Sir ! thnks For Understoodable tut 🙂

Laila Kurniawaty Paada says:

Thank you Mr Bryson Payne. Very helpful and easy to understand. I made it. Would you please show the continuation of this video? Is there another video that includes CSS applied to this game and how to make this game into downloadable version/.exe version? Thank you again!!!

Kode The Kodiak says:

Thank you thank you thank you! Very helpful! Subscribed and now to check out more of your vids!

Feynaro says:

Concise and super useful. Thanks.

Matthew Crane says:

Thank you for your super helpful and very easy to understand tutorial. I have took several classes on various programming languages. I am currently in my second to last semester at Lanier Technical College. I truly appreciate you taking the time to help us students.

Carlos Bennett says:

This was inspiring and informative; I noticed that you stated that you wanted us to upload our script if we got it to work, but I am not sure where you want us to upload it. I would be happy to observe the next part of this lesson where you stated that you would be counting the amount of times it takes to win. Look forward to seeing the follow up. Great!

Aishwarya ROY CHOUDHURY says:

very nice… sir you were too good…

Daniel Ardeleanu says:

one of the best example on youtube, verry good explanation, and really fun game, after i created i played 5-6 times for fun, thank you sir .

HipsterCloud says:

For some reason when I entered the code it did not popup the alert box when I clicked guess I’m not sure.

meingram says:

Great video.  Learning javascript to work with the Mirth HL7 engine.  Thanks


thank you, you helped me a lot

Xploit says:

I Already knew most of this but id like to say this is a great tutorial for beginners, I May start making more tutorials myself i just recently cleared out my videos because i didnt like the quality.. I Think i may start with something simple like this as well

John Kariungi says:

Nice demo!

Lior Margulis says:

Great video. A question – how did you create a new var (theNumber) if it wasnt declared before ?
I mean how did the program knew that when you click guess it should work if you didnt make any connection to it?

Avesun Gaming says:


kong seyha009 says:

like programming in javascript.
like dr.bryson payne

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!