9 lines
210 B
JavaScript
9 lines
210 B
JavaScript
|
function sendRequest(data, cb) {
|
||
|
// ... sending a request with "data"
|
||
|
return cb({ data: 'Hi there!' });
|
||
|
}
|
||
|
sendRequest('Send this!', function (response) {
|
||
|
console.log(response);
|
||
|
return true;
|
||
|
});
|