Function declaration in IE10 and Chrome - Why do they have different results?

Function declaration in IE10 and Chrome - Why do they have different results?

In APTANA,


--------- Code Sample 1 ---------------------


$(document).ready(function(){

//init_var();

function init_var(){

    alert("start");

}

------------------------------------------------------

I want to do:


1) alert("start") shall not be display without uncommenting //init_var();


   But, in Chrome, without regard to commeting or uncommenting //init_var();

   alert("start") works.


2) I hope IE10 shall have the same result as in Chrome.



======== Code Sample 2 =============

function alert_start(){

alert("Let's start!");

}


$(document).ready(function(){


alert_start();

...

-----------------------------------------------------------

Q: alert_start() works in IE10, but not in Chrome.

    Why?????




Best regards,