Examples Variable not declared foo.substring(1); // ReferenceError: foo is not defined The "foo" variable isn't defined anywhere. share|improve this answer answered Mar 11 '14 at 12:30 Aris 2,13811423 add a comment| up vote 0 down vote I had similar issue. So, i adeed only one dot, before extension. But as soon as i upload the code to the server it stops working.Cheers,Any other clue/idea? More about the author
The reason was that I'm connecting android to a webview with a JS. As we will see none of these messages is particularly enlightening: alert(foo) //FF/Chrome: foo is not defined //IE: foo is undefined //Safari: can't find variable foo Still not clear…"unresolvable reference"? Hope this help someone. Therefore if you first load: without loading jQuery first, then $ is not defined.
window.console && console.log(new Date());
I think that works OK for some situations (although I personally find it ugly), but