Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- setTimeout(() => {
- console.log(1);
- }, 0);
- const promise = new Promise<void>((resolve) => {
- console.log(2);
- resolve();
- });
- promise
- .then(() => {
- console.log('a');
- })
- .then(() => {
- console.log('b');
- })
- .then(() => {
- console.log('c');
- });
- of(null).subscribe(() => {
- console.log(3);
- });
- console.log(4);
Add Comment
Please, Sign In to add comment