Archive | Snippets RSS feed for this category

Amusing Javascript Snippet

3 December 2008


I saw this posted on Jacqui Maher’s blog today and was so amused I had to reblog it. if (!(typeof worldHasEnded == "undefined")) { document.write("YUP."); } else { document.write("NOPE."); } From Aside from the very obvious “you don’t need to negate that test condition, just reverse your simple if and else clauses” issue, it’s […]

Continue reading...