JSFiddle - React, Tailwind, and code Playground

by sandro_paganotti

JavaScript

// promise

console.log('hello!');
new Promise(function(resolve){ resolve(); }).then(function(){ console.log('promise'); });
console.log('is monday!');

// callback

console.log('hello!');
(function(cb){ cb() })(function(){ console.log('callback'); });
console.log('is monday!');