Thursday, March 17, 2011

JavaScript Watching

Douglas Crockford is a noted expert on JavaScript and reviews what's great about the language (as well as what's not so great). His video has an explanation why:
if (x) {
}

is not the same as:
if (x)
{
}

and why the first way is correct (spoiler: semi-colon injection). Yes! K&R curly braces win out!


JavaScript: The Good Parts
http://www.youtube.com/watch?v=hQVTIJBZook


And the book at Amazon:


JavaScript: The Good Parts

No comments: