JSFiddle - React, Tailwind, and code Playground

by boushley

HTML

<div id="output">

</div>

JavaScript

var out = document.getElementById("output")

function log (message) {
	var p = document.createElement('p')
  p.textContent = message
  out.appendChild(p)
}

(function () {
	log ("BEFORE")
	log("What is the type of anon: " + typeof anon)
	log("What is the type of anon2: " + typeof anon2)
	log("What is the type of some2: " + typeof some2)
	log("What is the type of some3: " + typeof some3)

	var anon = function () {}
  var anon2 = function some2() {}
  function some3() {}
  
  log("AFTER")
	log("What is the type of anon: " + typeof anon)
	log("What is the type of anon2: " + typeof anon2)
	log("What is the type of some2: " + typeof some2)
	log("What is the type of some3: " + typeof some3)
})()