Code belongs to javascriptissexy.com My question is why invoking mjName (\"Jackson\") returns \"This celebrity is Michael Jackson\"? Is it that second parameter given in ANY out
The function is evaluated to be celebrityName ("Michael")("Jackson");
Steps :
Arguments from left to right go from outer to inner called methods.