How should you complete the code?

DRAG DROP
You need to write a callback function in JavaScript.
You write the following code:

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in
the answer area. Each code element can be used once, more than once, or not at all. You may need to drag
the split bar between panes or scroll to view content.
Select and Place:

DRAG DROP
You need to write a callback function in JavaScript.
You write the following code:

How should you complete the code? To answer, drag the appropriate code elements to the correct targets in
the answer area. Each code element can be used once, more than once, or not at all. You may need to drag
the split bar between panes or scroll to view content.
Select and Place:

Answer:

Explanation:
https://www.impressivewebs.com/callback-functions-javascript/



Leave a Reply 2

Your email address will not be published. Required fields are marked *


Boniface Donfack

Boniface Donfack

Hi,
Target 1: callback
Target 2: callback()
Target 3: function() //for defining the callback function