I recently encountered an intriguing question I'd like to share with you all. Take a guess at the expected output and share your insights! đ
For further actions, you may consider blocking this person and/or reporting abuse
For further actions, you may consider blocking this person and/or reporting abuse
Gav -
Nozibul Islam -
Salim Chemes -
Arindam Majumder -
Top comments (7)
1 4 6 9 2 5 undefined undefined 8 3?
Not 100% on whether the promise next tick guarantee will make the
resolve
trigger the firstthen
before or after the 2, but guessing after.EDIT: nope, the 2 is after the next tick promise so it's:
1 4 6 9 5 undefined undefined 8 2 3
1
9
2
4
6
5
7
8
3
1, 9, 2, 3
You just define the promise and never run it?
1
4
5
9
5
undefined
undefined
8
2
3
1
9
4
5
5
5
6
7
7
8
2
3
No. Thik it once again
1
4
6
9
5
undefined
undefined
8
2
3