Javascript Function Call : <p>The question is really simple but i searched everywhere couldn't get an answer.</p>

<pre><code>add();
function add()
{
//function code here
}
</code></pre>

<p>The above code works in JavaScript even though function call is before function definition but wouldn't work in language such as C or C++. Could anyone tell me why?</p>
