Javascript syntax…

Javascript has that point of uncertainty that makes coding and adventure! Here is one example:

] ()
SyntaxError: syntax error

] {}
undefined

] ({})
Object {}

For more oddities like this one, I suggest the hilarious presentation WAT from Gary Bernhardt.

Comments

One response to “Javascript syntax…”

  1. debiatan Avatar
    debiatan

    This takes away most of my desire to try javascript… and ruby.

Leave a Reply

Your email address will not be published. Required fields are marked *