Front End Developer (AngularJS) Question:

Explain me 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.

Here are two decent resources on callbacks with JavaScript and jQuery.

Download Front End Developer (AngularJS) PDF Read All 62 Front End Developer (AngularJS) Questions
Previous QuestionNext Question
Tell me are you working on any pet projects in your spare time? How did it come about?Explain me are you familiar with Jasmine or QUnit?