Essential Question: How can I use the random method to create a game?
Mastery Objectives:
SWBAT create a conditional statement.
SWBAT use the math function random to make a dice game.
Directions: Use the math functions to create a random number and round to create the game Beetle. The game technically works but it doesn't calculate 6 legs, 2 eyes, and 2 antennas. Rewrite the program to reset i for those body parts.
Do Now: Write a JavaScript program to rotate the string 'Hello World' in right direction by periodically removing one letter from the end of the string and attaching it to the front.
Roll a Dice - https://www.youtube.com/watch?v=9L-VhUmir-A&t=68s
Ticket-to-Leave: In the comments, describe what a nested conditional statement is.