Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const myCallbackTest = (callback) => {
- callback(undefined,[1,2,3]);
- console.log("This will be printed before anything")
- }
- //First type of callback passed.
- myCallbackTest((hola,chao) => {
- if (hola) {
- return console.log(hola);
- }
- console.log(chao);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement