I did this in my Angular app:
var cl = console.log;
cl(123);
however, I had the following error message:
Uncaught TypeError: Illegal invocation
This happened in Chrome. It works in Nodejs.
I'm confused. Is it illegal code?
I did this in my Angular app:
var cl = console.log;
cl(123);
however, I had the following error message:
Uncaught TypeError: Illegal invocation
This happened in Chrome. It works in Nodejs.
I'm confused. Is it illegal code?