JSFiddle - React, Tailwind, and code Playground

by tjnicolaides

JavaScript

var a = ["a", "b", "c"];
a.forEach(function(entry, index) {
    setTimeout(function() { 
        console.log(entry); 
    }, 1000 * (index + 1));
});