-
What will happen if the body of a for/in loop deletes a property that has not yet been enumerated?
-
- The property will be enumerated
- The loop will not run
- The property will be stored in a cache
- That property will not be enumerated
- None of these
Correct Option: A
If the body of a for/in loop deletes a property that has not yet been enumerated, that property will not be enumerated. If the body of the loop defines new properties on the object, those properties will generally not be enumerated.