Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

It iterate through a Javascript object you can use:

Code Block
languagejs
for (var Car in Cars) {
  console.log(Car, Cars[Car]);
}

See https://www.w3schools.com/js/js_objects.asp