im a newbie javascripter, coming from c++/c#. im learning a tutorial which has the following lines:
function getUserInput(firstName, lastName, callback, callbackObj) {
callback.apply (callbackObj, [firstName, lastName]);
}
this was an example of using a callback function inside another function.
and i was wondering about this line :
callback.apply (callbackObj, [firstName, lastName]);
what is the meaning of using a [ ] inside a function?