Skip to content

Instantly share code, notes, and snippets.

@shazow
shazow / gist:612814
Created October 6, 2010 04:13
Examples where lack of semicolons break Javascript code
// Examples where lack of semicolons break things
// Example 1:
function a() { return "a" }
function b() { return "b" }
var foo = [1,2,3]; // <--- remove this semicolon to break things
-1 == a() || b();