javascript-for-in Flashcards

1
Q

What is a for in loop?

A

statement that loops through the properties of an object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you target the value of a property in an object.

A

using bracket notation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

When should you use a for in loop?

A

when you need to loop over object keys and values.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly