var x=1; //console.log(f); if(function f () {}){ console.log(d); function d () {}; x+=typeof(f); } console.log(x);