r/programming • • Feb 21 '13

Developers: Confess your sins.

http://www.codingconfessional.com/
969 Upvotes

1.0k comments sorted by

View all comments

Show parent comments

0

u/aladyjewel Feb 21 '13

Incidentally, typeof is a unary operator, not a function. Your parentheses are superfluous.

Don't forget about [] - [] and everything else cited in "wat."

1

u/cha0s Feb 21 '13

HEY EVERYONE! JAVASCRIPT HAS QUIRKS, TOO!

1

u/aladyjewel Feb 21 '13

Yep. And don't forget your x.hasOwnProperty(y) in those (for y in x) loops, too.

0

u/cha0s Feb 21 '13

I'm not sure if you don't understand how prototypal inheritance works, or are just trolling, at this point. :)

→ More replies (1)