Skip to content

Latest commit

 

History

History
15 lines (8 loc) · 582 Bytes

questions.md

File metadata and controls

15 lines (8 loc) · 582 Bytes

Day 2 Questions

  1. Declare a variable named animals that stores an array containing the following strings: "zebra", "giraffe", "elephant".

  2. Using the array animals, how would you access "giraffe"?

  3. How would you add "lion" to the animals array?

  4. Name and describe two additional array methods.

  5. What are the boolean values in JavaScript?

  6. In JavaScript, how would you evaluate if 2 is equal to 25? What is the result of this evaluation?

  7. In JavaScript, how would you evaluate if 25 is greater than 2? What is the result of this evaluation?