JSFiddle - React, Tailwind, and code Playground

by Tristen Brown

JavaScript

function foo(name) {
	console.log(name);
}

Promise.resolve()
  .then(() => window.setTimeout(foo('hello'), 100))
  .then(foo('world'));