Javascript Getting Unexpected Behaviour With Firefox Web Console

Javascript Getting Unexpected Behaviour With Firefox Web Console