JSFiddle - React, Tailwind, and code Playground

by omarqa

JavaScript

var test = ["First element", "Second", "Last"];

//JQuery 
$(test).each(function(index) {
    alert(test[index]);
});

//vanilla JS
test.forEach(function(element) {
    alert(element);
});