News for hackers. Stuff that matters.
Re:Common JavaScript Gotchas by jblotus on Sunday January 13, 2013 @07:51PM (#5052646)
author here.

<?php $a = 1; /* global scope */

function test() { echo $a }

test();

in javascript, $a would be 1 but in PHP it is undefined and won't produce output,

Re:Common JavaScript Gotchas by jblotus on Tuesday January 15, 2013 @09:27AM (#5060203)
after thinking about it for a while, I was misrepresenting what block scope actually was and removed those references in the post.