How can I access some variables inside
$(document).ready(function(){ var foo=0; var bar = 3; });
from Google chrome console? If I
$(document).ready(function(){ window.foo=0; window.bar = 3; });
You expose those vars into global scope(really not advised)