Advertisement
soden

Untitled

Feb 27th, 2024
578
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 0.20 KB | Source Code | 0 0
  1. function getData(callback) {
  2.     setTimeout(function() {
  3.         callback('Data berhasil diambil');
  4.     }, 2000);
  5. }
  6.  
  7. function processData(message) {
  8.     console.log(message);
  9. }
  10.  
  11. getData(processData);
Tags: JavaScript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement