Archive for June 7th, 2008

JavaScript Syntax Nuances

Saturday, June 7th, 2008

If you learn a programming language it is unlikely that you will read the formal language specification that defines all the laws of the syntax. You may never read it at all. It is more useful to learn by example, or at least topic-by-topic. However, a mere ten years after writing my first few lines of JavaScript, I read the ECMAScript standard and it threw up some things I did not know.

There are many things that you can write in JavaScript that are perfectly valid syntax, but that you probably never will write. Here are a few that raised an eyebrow or two.

(more…)

Bookmark this!
[Bloglines] [del.icio.us] [Digg] [Facebook] [Furl] [Google] [Newsvine] [StumbleUpon] [Technorati] [Yahoo!]