I\'m trying to get back the result of a function inside another one but always getting undefined:
$(window).load(function() { var isMobile = false; fun
http://jsfiddle.net/6jL64ave/2/ move those elements:
var isMobile = false; $(window).resize(function() { resizeImage(); console.log('wow') }); function resizeImage() { console.log(isMobile) console.log('wow') }
outside window load function