Tutorials Examples

Drakon.Tech JavaScript tutorial: how to iterate over an object

How to build a loop that iterates over properties of a JavaScript object.

  1. Add a "For loop" icon.
  2. Inside the loop start icon, put the key variable, comma, the value variable, semicolon, and then the collection.

Example:

key, value; object

Iterating a JavaScript object with a For loop icon:

Iterating a JavaScript object with a For loop icon

Note: