0 votes
in JavaScript by
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

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 Mar 21, 2021 in JavaScript by rajeshsharma
0 votes
asked Oct 10, 2022 in JavaScript by SakshiSharma
...