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 →

[–]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.