Chrome, Uncaught TypeError: console.log(…) is not a function
Tested both in chrome and nodejs, same behavior.
Not sure why this error happens…
Failed:
console.log(‘before’)(async () => {
console.log(‘in async’)
})()
Make it work by adding a ; after console.log()
console.log(‘before’);(async () => {
console.log(‘in async’)
})()