JSFiddle - React, Tailwind, and code Playground

by denisz

JavaScript

function foo() {
  fetch('/echo/json/').then(() => console.log('fetch was executed'))
  baz();
  console.log('foo was executed');
}
function baz() {
  bar();
  console.log('baz was executed');
}
function bar() {
  console.log('hello');
  console.log('bar was executed');  
}
foo();