TGViewer
JavaScript test JavaScript test @js_test · 9.76K subscribers
Post #6490 289
❗️Что будет на выходе:

function asyncQuiz() {
return new Promise((resolve) => {
setTimeout(() => resolve('Hello'), 1000);
});
}

async function runAsyncQuiz() {
const result = await asyncQuiz();
console.log(result);
}

runAsyncQuiz();
console.log('World');

Ответ: World Hello

JavaScript test | #JavaScript & Max
More from @js_test
  1. Sep 22, 2026❗️Что будет на выходе: function Animal(name) { this.name = name; } Animal.prototype.speak…
  2. Sep 21, 2026❗️Что будет на выходе: const str = " Hello, World! "; const result = str .trim() .split(",…
  3. Sep 21, 2026❗️Что будет на выходе? async function test() { console.log('1'); setTimeout(() => { consol…
  4. Sep 21, 2026❓Что будет на выходе? 'use strict'; function strictModeExample() { undeclaredVariable = 10…
  5. Sep 20, 2026❗️Что будет на выходе? async function test() { console.log('1'); setTimeout(() => { consol…
  6. Sep 20, 2026❗️Что будет на выходе? const user = { profile: { name: 'Alice', settings: { notifications:…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →