Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function getData(callback) {
- setTimeout(function() {
- callback('Data berhasil diambil');
- }, 2000);
- }
- function processData(message) {
- console.log(message);
- }
- getData(processData);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement