Question: what are callbacks in javascript?
Answer: A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action. ... '); callback(name); } processUserInput(greeting); The above example is a synchronous callback, as it is executed immediately.