Essential Question: How can I store values into variables?
Mastery Objectives:
SWBAT store values into variables.
SWBAT request data from users.
SWBAT use concatenation to print variables.
Do Now: Write a JavaScript program to converts a comma-separated values (CSV) string to a 2D array.
Note: Use String.split('\n') to create a string for each row, then String.split(delimiter) to separate the values in each row. Omit the second argument, delimiter, to use a default delimiter of ,. Omit the third argument, omitFirstRow, to include the first row (title row) of the CSV string.
Resources: https://www.madtakes.com/ - Play the game to see how mad libs work.
Directions: Recreate a mad lib. Prompt the user for the words you need and store them into variables or a list. Display the entire paragraph on the screen or the console.Â