complexity: 2 ; importance: 5; author: docentmail


Hoisting behavior

Problem 2016-01-17-04-52

Question: What would be alert messges for the code snippet?

alert(typeof myFunction);
alert(typeof OtherFunction);

function myFunction(){
   alert("Hello from myFunction ");
}

var myOtherFunction = function() {
        alert("hello from local myFunction");  
};