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() 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
- Using the Math.random(); function, you are to create an application which will act as a dice for a board game.
- 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.
- Create an application for a rock, paper, scissors game verses a the computer.