Skip to content

19WDWU02/JavaScript-Practice-Exercises-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

JS tasks 2

Bellow is a list of tasks which will also teach you something new about javascript/jquery.
Each task will need to include the new js function/method for it to work. Other than that you can use anything we have learnt about js already.
You are also to create a front end interface for each one rather than it just showing in the console.

Feel free to use bootstrap and jQuery in these tasks

Math.random()

Math.random() returns a random number between 0 , and 1 (ie, 0.44342843872015725)
This function is often used to create a random number generator. When doing that you need to include some extra parameters.

  Math.floor(Math.random() * 100); // will give you a random number between 0 and 99
  Math.floor(Math.random() * 100) + 1;  // will give you a random number between 1 to 100

W3Schools .random()

Tasks

  1. Using the Math.random(); function, you are to create an application which will act as a dice for a board game.
  2. Create an application which will act as a guessing game. Ask the user to enter a number between 1 and 10 and then check to see if that is the number the computer has chosen.
  3. Create an application for a rock, paper, scissors game verses a the computer.

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published