DEV Community

Ronak Shah
Ronak Shah

Posted on

JavaScript Callback Functions to learn

A callback is a function passed as an argument to another function. Callback functions are an important part of JavaScript and once you know how callbacks work, you’ll become much better in JavaScript. Callback functions can be synchronous or asynchronous.

Syntex:

function print(callback) {

callback();
}

Top comments (0)