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
SurveyJS lets you build a JSON-based form management system that integrates with any backend, giving you full control over your data and no user limits. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more.
alpira -
tq-bit -
Bruno Henrique -
Joaquín Gutiérrez -
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