Open in app
lff l
9 Followers
About

Sign in

9 Followers
About
Open in app

Chrome, Uncaught TypeError: console.log(…) is not a function

lff l

lff l

Apr 11, 2019·1 min read

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’)
})()

Written by

lff l

More from lff l

More From Medium

You Are Being Lied to About Inflation. It Hasn’t Been 2% for 30 Years (Here’s Proof).

Tim Denning in The Ascent

Why Did Trump Install His Loyalists at the Pentagon Before the Capitol Attack?

Lawson Miller in Politically Speaking

Looking For A Profitable Coding Project? Take This One

keypressingmonkey in Level Up Coding

The Call Came From Inside the House

Danielle Moodie in ZORA

Object-Oriented Programming is The Biggest Mistake of Computer Science

Ilya Suzdalnitski

Trump Told Three Big Lies — and They’re Ripping America Apart

umair haque in Eudaimonia and Co

Stop Using Print to Debug in Python. Use Icecream Instead

Khuyen Tran in Towards Data Science

8 weight loss hacks that helped reduce my body fat

Insider in Insider

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store