What's an example of a string? A number?
How are 2
and "2"
different?
What is the difference beween ==
and ===
in javascript?
Why is 1 == true
true but 1 === true
false?
What happens if you put !
in front of something?
For example, how are these different?
true
vs. !true
Write a function that takes a string called name as an argument and logs "Hello " plus the name (e.g. "Hello Megan")
What's an example of an array of numbers?
Write a function that takes an array of numbers as an argument and returns the largest number.
What's an example of an object? Write an object called customer that includes key:value pairs for name, age, and hairColor. Include a method called speak that logs the customer name and age.