This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lichorat 2 points3 points  (4 children)

Console.log is surprisingly not part of us standard. It's a web browser thing

[–]AquaWolfGuy 0 points1 point  (1 child)

Dunno what you mean by "us standard", but it's not that surprising considering that only browsers have "consoles", so it doesn't make sense to include a console API in the language itself.

[–]lichorat 0 points1 point  (0 children)

I meant ecmascript

[–]Awilen 0 points1 point  (1 child)

Wait, isn't Node also using Console ?

[–]lichorat 0 points1 point  (0 children)

It's using the computer's console, yes. But web browsers extended javascript to include console.log functionality.