Answers for "call back function in javascript"

7

call back function in javascript

function greeting(name) {
  alert('Hello ' + name);
}

function processUserInput(callback) {
  var name = prompt('Please enter your name.');
  callback(name);
}

processUserInput(greeting);
Posted by: Guest on December-05-2019

Code answers related to "call back function in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language