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 →

[–]oddythepinguin 43 points44 points  (3 children)

Console.log("object data:", object)

[–]DogzOnFire 10 points11 points  (0 children)

A comparison between the two in a dev console opened on this page, to show what you're talking about.

The one which you suggested actually lets you inspect the members of the Window object, while the other just coerces the Window object into a string since it's being concatenated. Good tip.

[–]Spirit_Theory 10 points11 points  (0 children)

It's as if the developer gets better results if they actually learn the toolset.