next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
</>
Loading Topics...
Questions
2 of 2
1
Write a function flattenObject(obj) that flattens a deeply nested object into a single-level object, using dot notation for nested keys.
2
Implement `customPromiseAll(promises)` that mimics `Promise.all()`.
javascript
Basics
Engine
JIT
V8
Event Loop and Runtime
Concurrency and Threading
Bytecode and Parsing
Execution Context
Data Types
Functions
String Operations
Array Operations
this
Call Apply Bind
Closure
Objects
ES6 Classes
Events
ES6
Promises
Iterator and Generator
Error Handling
Web Workers
PWA
Web Sockets
Web Assembly
Garbage Collector
Modules
Browser APIS
Functional Programming
Currying
Higher Order Functions
Memoisation
Security
Code
Polyfills
Questions
All Topics
A-
Reset
A+
02 / 02
Implement `customPromiseAll(promises)` that mimics `Promise.all()`.
It should:
1
Take an array of promises and return a new promise.
2
Resolve when all promises resolve, returning an array of results.
3
Reject immediately if any promise rejects.
javascript
Copy
javascript
Copy
Suggest Improvement