JSFiddle - React, Tailwind, and code Playground

by Uday Hiwarale

HTML

<script src="https://rawgit.com/eu81273/jsfiddle-console/master/console.js"></script>

JavaScript

Promise.resolve( 'Fulfill DATA!' )
.then( ( result ) => {
    console.log( '[1] then', result );

    return new Promise( resolve => {
        setTimeout( () => {
            resolve( 'Nested promise data!' );
        }, 1000 ); // resolve after 1 second
    } );
} )
.then( ( result ) => {
    console.log( '[2] then', result );
} );