What is function hoisting in JavaScript?

What is function hoisting in JavaScript?

Add();

function Add(){
Statement;
}

Here we called function before function definition. Here function hoisted. Program will execute with any error.
But It won’t happened in case of Variable hoisting . It will show undefined.