diff --git a/Chapter 12/callback b/Chapter 12/callback new file mode 100644 index 0000000..93bc854 --- /dev/null +++ b/Chapter 12/callback @@ -0,0 +1,9 @@ +function greet(fullName){ + console.log(`Welcome, ${fullName[0]} ${fullName[1]}`) +} +function processCall(user,callback){ + const fullName = user.split(" "); + callback(fullName); +} + +processCall("Laurence Svekis",greet);