Here is my javascript code :
console.log(a);
c();
b();
var a = \'Hello World\';
var b = function(){
console.log(\"B is ca
Function Expression:
var b = function(){
console.log("B is called");
}
Function Declaration:
function c(){
console.log("C is called");
}
Function Expressions loads only when the interpreter reaches that line of code.On the other side the function Declaration, it'll always work. Because no code can be called until all declarations are loaded.
Read more about Function Declaration and Function Expression