Skip to content

Instantly share code, notes, and snippets.

@mh120888
Created January 28, 2018 14:19
Show Gist options
  • Save mh120888/b6ab260e6272f193a6e38e1fb3de147a to your computer and use it in GitHub Desktop.
Save mh120888/b6ab260e6272f193a6e38e1fb3de147a to your computer and use it in GitHub Desktop.
Questions to review

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.

https://repl.it/@mhiggins/NumberCalculator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment