Front End Programmer Question:

What is a callback function?

Tweet Share WhatsApp

Answer:

JavaScript is read line by line. Sometimes, this can result in what seems like a subsequent line of code being executed prior to an earlier line of code. A callback function is used to prevent this from happening, because it is not called until the previous line of code has fully executed.

Download Front End Developer PDF Read All 67 Front End Developer Questions
Previous QuestionNext Question
Tell me why do we recommend external CSS or Javascript versus inline?Explain what is an IIFE?