What is the use of different types of function call in js?
- by sparrow
I have seen different type of js function call like
function aTestFunction(param)
{
// function body
}
and also:
aTestFunction = function(param)
{
// function body
}
what is the difference in above to implementaion? Also, i found that jquery/prototype js framework uses the second implementation in most cases. Is there any special reason for that?
Sorry, I am a novice so this question may be silly to someone but will be helpful me if any guru out there helps me with this silly question. Thanks in advance.