Essential Question: How can I use a place holder in my code?
Mastery Objectives:
SWBAT create a switch statement in JavaScript.
SWBAT use constants in JavaScript.
SWBAT use place holders in JavaScript.
Directions: Create a tip calculator to calculate different values of tips. Use variables and constants to hold the place in your statements.
Do Now: Create a switch statements that checks the weather and decides what to wear. You need to create a variable named weather and write the results to the console.
WARNING, THE FOLLOWING CODE USES BACK TICKS, `, LOCATED NEXT TO THE NUMBER 1 ON THE KEYBOARD.
Ticket-to-Leave: In the comments, what would you use constants for?