Back
Syntax
Study
Editor
Mode:
HTML
CSS
JavaScript
PHP
Reset
Run »
HTML / CSS / JS
async function dashboard(userId) { const [user, posts] = await Promise.all([ api.getUser(userId), api.getPosts(userId), ]); return { user, posts, loadedAt: Date.now() }; }
Result
Open