Skip to content

Commit a33210e

Browse files
committed
Added article and video about : What are promises in JavaScript, and how do they work?
1 parent 2b4d203 commit a33210e

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

README.md

+22-3
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250

251251
---
252252

253-
### Describe the purpose of "this" in JavaScript and how it is determined.
253+
### 4. Describe the purpose of "this" in JavaScript and how it is determined.
254254
<details>
255255
<summary><b>Answer</b></summary>
256256

@@ -269,7 +269,7 @@
269269

270270
---
271271

272-
### How does prototypal inheritance work in JavaScript?
272+
### 5. How does prototypal inheritance work in JavaScript?
273273
<details>
274274
<summary><b>Answer</b></summary>
275275

@@ -287,7 +287,26 @@
287287
</details>
288288

289289
---
290-
6. What are promises in JavaScript, and how do they work?
290+
291+
### 6. What are promises in JavaScript, and how do they work?
292+
<details>
293+
<summary><b>Answer</b></summary>
294+
295+
296+
#### Articles
297+
- 📜 [JavaScript Promise](https://www.geeksforgeeks.org/javascript-promise/)
298+
- 📜 [JavaScript Promises](https://www.w3schools.com/js/js_promise.asp)
299+
- 📜 [How Promises Work in JavaScript ](https://www.freecodecamp.org/news/guide-to-javascript-promises)
300+
301+
302+
#### Videos
303+
- 🎬 [JavaScript Promises -- Tutorial for Beginners](https://youtu.be/TnhCX0KkPqs?si=efYcK87KXHZxMyTG)
304+
- 🎬 [Promises](https://youtu.be/ap-6PPAuK1Y?si=mmz5HguoLYytRylH)
305+
306+
</details>
307+
308+
---
309+
291310
7. Explain what "async/await" is and how it works.
292311
8. How can you handle errors in JavaScript?
293312
9. What is the difference between "let," "const," and "var" when declaring variables.

0 commit comments

Comments
 (0)