How can I access some variables inside
$(document).ready(function(){ var foo=0; var bar = 3; });
from Google chrome console? If I
define them outside of $(document).ready() and then access them inside as well.
var foo = 0, bar = 3; $(document).ready(function(){ alert(foo); });