JSFiddle - React, Tailwind, and code Playground

JavaScript

var foo = [1,2,3];
for( var i in foo) {
    alert( foo[i] );
}