This commit is contained in:
Karan
2021-11-30 18:44:31 +05:30
parent 547a908095
commit 9720a1f0fc
4 changed files with 0 additions and 0 deletions
+9
View File
@@ -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);