JSFiddle - React, Tailwind, and code Playground

by ppgab

JavaScript

function outer(){
	actualPromise()
  .then(msg => notPromise(msg))
  .then(msg => console.log(msg))
  .then(nothing => console.log(nothing))
  .then(nothing => console.log(nothing))
  .then(nothing => console.log(nothing))
  .then(nothing => console.log(nothing))
  .then(nothing => console.log(nothing))
}

function actualPromise(){
	return new Promise( r=> r('hi'));
}

function notPromise(msg){
  console.log(msg)
	return 'bye';
}

outer();