javascript-for-in Flashcards
1
Q
What is a for in loop?
A
statement that loops through the properties of an object.
2
Q
How do you target the value of a property in an object.
A
using bracket notation.
3
Q
When should you use a for in loop?
A
when you need to loop over object keys and values.