cript type="module">

		// Test to check how errors are 'catched' in async / Promises.
		// https://javascript.info/async-await
		// http://thecodebarbarian.com/async-await-error-handling-in-javascript.html


		function b() {

	    		c( // <---
				function c() {
	    			setTimeout(() => resolve("b"), 1000)
	    		}

		}

		console.log("a")
		//b().then(res => console.log(res))
		console.log("c")

	</script>
</body>
</html>