var a=10;
if(a===10){
console.log(a);
function a (){}
console.log(a);
}
Since, if condition is true then why value of both console.log is coming as function in chrome v58 and coming as 10 in IE 8? Please refer to the screenshot of Chrome and IE8 console output.
Chrome:
IE 8: