My code was working until i updated node.js to version 8.11.3
Now i always get error \"callback argument must be a function\" when trying to call a function with setTim
@keyur is correct. According to the node.js timers documentation the setTimeout function takes the name of the function to execute as the first argument, the delay in milliseconds as the second argument, followed by any arguments being passed to the function.
For Example:
setTimeout(testFunction, 100, itemid, price);