JSFiddle - React, Tailwind, and code Playground

by Matthew Day

JavaScript

let iterable = [10, 20, 30];

let iterable2 = {
	0: 10,
  1: 20,
  2: 20
}

for (let i of iterable) {
	console.log('x', i);
}

for (let i = 0; i < iterable.length; i++) {
	console.log('y', i);
}

for (let i in iterable) {
	console.log('z', i);
}