Home › Forums › JavaScript › Callback function not working › Reply To: Callback function not working
November 25, 2014 at 10:06 am
#189187
Participant
fireit()
is calling your function, not passing it (you’re passing the result, in this case,undefined
). Leave out the parens.- there is no var
callback
in your code. you need to use the name you pass into the function (in this case,fireit
).
If you need anything more specific, please explain more and show us a codepen : )