0 votes
in JavaScript by (19.8k points)
What if we define a "for" loop and it removes one of the properties that has not yet been enumerated?

a) The removed property will be stored in a cache

b) The loop will not run at all

c) That property will be enumerated

d) That specific property will not be enumerated

1 Answer

0 votes
by (23.1k points)

Answer: D

Reason: If the body of the "for" loop removes any of the property that has been not enumerated yet, normally that property not gets enumerated. If the object of the "for" loop statement creates a new property on the object, that property is usually not enumerated.

Related questions

0 votes
asked Aug 19, 2022 in GoLang by john ganales (13.1k points)