Which keyword is used to export a function from a module in ES6?
What does the Promise.allSettled() method return?
Resolves if all promises are fulfilled
Rejects if any promise is rejected
Returns an array with the results of all promises, regardless of their status
Cancels unresolved promises
What is the result of the following code?
JavaScript
const obj = { a: 1, b: 2 };
const { a, b } = obj;
console.log(a, b);
What does the Symbol type represent in JavaScript?
A unique, immutable primitive value
A special property of arrays
Which syntax allows combining multiple arrays into one?
What is the purpose of optional chaining (?.)?
Prevents accessing properties on null or undefined objects
Accesses private properties
Automatically assigns default values
Handles circular references
Which feature allows embedding variables inside strings?
What does the rest operator (...) do?
Combines multiple arrays into one
Collects remaining elements into an array or object
Spreads an array into individual elements
Executes asynchronous code
What is the output of the following code?
JavaScript
const arr = [1, 2, 3];
const result = [...arr, 4, 5];
console.log(result);
What is the purpose of Promise.any()?
Resolves when all promises are fulfilled
Resolves when the first promise is fulfilled
Resolves or rejects based on the fastest promise
Resolves when the first promise is fulfilled or rejects when all promises fail
There are 10 questions to complete.
Take a part in the ongoing discussion
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4