Essential Question: How can I use operators to calculate formulas?
Mastery Objectives:
SWBAT to use operators in JavaScript.
SWBAT to print to the console.
SWBAT to concatenate text in JavaScript.
Do Now: Write a JavaScript program to find the area of a triangle where lengths of the three of its sides are 5, 6, 7.
Directions: Using concatenation, complete the following tasks:
Create a javascript project in repl.it using all 5 operators: + - * / % (Mod) Create 3 examples of each and print your results to the console.
Write your first, middle, and last name using concatenation and print to the console.
Write, "My age is: " with your age using concatenation and print to the console. For example, console.log("My age is: " + 12)
Write your favorite foods using concatenation and print to the console.
Write your favorite movies using concatenation and print to the console.
Subtract your birth year from the present year and print to the console.
Use mod to divide your birth year by 12 and get the remainder and print to the console.
Multiply your grade by 4 and print to the console.
Calculate your age in dog years and print to the console (Multiply by 7).
Calculate your age in 2040 and print to the console.
Write the titles of your favorite books using concatenation and spaces.