JSFiddle - React, Tailwind, and code Playground

JavaScript

var tests = [1,2,3,4,5];

for (var i=0; i<tests.length; i++){
    var test = tests[i];
};

alert(test);