Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Что выведется в консоль и почему?
- */
- function test () {
- console.log(1)
- setTimeout(function () {
- console.log(2)
- })
- Promise.resolve(3).then(function (n) {
- console.log(n)
- })
- }
- test()
- console.log(4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement