Module 4- Codecademy JavaScript

For this assignment I had to complete the first two sections of the JavaScript tutorial over at Codecademy. The two sections worked as interactive lessons in which covered the introduction to programming JavaScript and using functions within JavaScript. The part that stuck to me the most was learning how to use the confirm and prompt command.

To view assignment details click here.

js1

The 2 screenshots below are a quick example of the game "rock, paper, scissors!"

The user inputs an answer and the computer randomly picks an answer using "Math.random();". If both the user and computer pick the same answer, the game then asks the user for another answer.


js2
js3