Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

callback function

//Callback functions - are functions that are called AFTER something happened

  const foo = (number, callbackFunction) => {
    //first 
    console.log(number)
    
    //second - runs AFTER console.log() happened
    callbackFunction()
  }
  
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #callback #function
ADD COMMENT
Topic
Name
1+5 =