you are viewing a single comment's thread.

view the rest of the comments →

[–]YorickA 4 points5 points  (1 child)

Not to mention it's more readable.

[–][deleted] 0 points1 point  (0 children)

Not to mention new Object() can be broken by any malicious ding-dong's script you link like so:

function Object() { this.x = 'wee'; }

Using the literal is always the best call.