Property in to array - a part of

Tell us what’s happening:
I need to know what that line of code below does?
If someone could explain it to me.

for (let property in duck) {
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Iterate Over All Properties

Link to the challenge:

I’ve found in here: - JavaScript | MDN

No bother.

Have a great day of lerning.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.