Without await you get the promise, not the value.
Acceptance criteria
- 1.#out should show got Ada.
Without await you get the promise, not the value.
async function run() { const name = Promise.resolve("Ada"); document.querySelector('#out').textContent = "got " + (name instanceof Promise ? "a promise object" : name); } run();
Output ready when you are
Press Run to render your code, or Submit to validate your solution.