JSFiddle - React, Tailwind, and code Playground

by arackaf

JavaScript

const p = new Promise(res => {
	setTimeout(() => res(12), 2000);
});

p.then(val => console.log(val));