Skip to content

Commit 34b4280

Browse files
committed
promises question added
1 parent f86d912 commit 34b4280

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed

code-snippets/promises.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,51 @@
2424
</details>
2525

2626
</li>
27+
28+
---
29+
30+
<li>
31+
32+
**Which of the following isn’t a method of Javascript Promise?**
33+
34+
- A: `Promise.then()`
35+
- B: `Promise.all()`
36+
- C: `Promise.error()`
37+
- D: `Promise.catch()`
38+
39+
<br/>
40+
<details>
41+
<summary><b>Answer</b></summary>
42+
<p>
43+
44+
#### Option: C
45+
46+
</p>
47+
</details>
48+
</li>
49+
50+
---
51+
52+
<li>
53+
54+
**Which of the following isn’t a state of Javascript Promise?**
55+
56+
- A: `fulfilled`
57+
- B: `awaited`
58+
- C: `pending`
59+
- D: `rejected`
60+
61+
<br/>
62+
<details>
63+
<summary><b>Answer</b></summary>
64+
<p>
65+
66+
#### Option: B
67+
68+
</p>
69+
</details>
70+
</li>
71+
72+
---
73+
2774
</ol>

0 commit comments

Comments
 (0)