Skip to content

Commit c4043cc

Browse files
committed
Added article and video for What is a callback function, and why is it used in JavaScript?
1 parent 3b4809b commit c4043cc

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

README.md

+19-1
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,25 @@
230230

231231
---
232232

233-
3. What is a callback function, and why is it used in JavaScript?
233+
### 3. What is a callback function, and why is it used in JavaScript?
234+
<details>
235+
<summary><b>Answer</b></summary>
236+
237+
238+
#### Articles
239+
- 📜 [JavaScript Callbacks](https://www.w3schools.com/js/js_callback.asp)
240+
- 📜 [Callback function](https://developer.mozilla.org/en-US/docs/Glossary/Callback_function)
241+
- 📜 [JavaScript Callback Functions – What are Callbacks in JS and How to Use Them](https://www.freecodecamp.org/news/javascript-callback-functions-what-are-callbacks-in-js-and-how-to-use-them/)
242+
243+
244+
#### Videos
245+
- 🎬 [JavaScript Callbacks Explained in 5 Minutes](https://youtu.be/kz_vwAF4NHI?si=erLDHFpbu-YGjztm)
246+
- 🎬 [Callback Functions in JS ft. Event Listeners](https://youtu.be/btj35dh3_U8?si=Gp5ttNXnBgUXWmlW)
247+
- 🎬 [WHAT IS A CALLBACK FUNCTION IN JAVASCRIPT? - Explained with Callback Examples](https://youtu.be/qtfi4-8dj9c?si=e7x-NbKkyB4UJlAv)
248+
249+
</details>
250+
251+
---
234252
4. Describe the purpose of "this" in JavaScript and how it is determined.
235253
5. How does prototypal inheritance work in JavaScript?
236254
6. What are promises in JavaScript, and how do they work?

0 commit comments

Comments
 (0)