Need Assistance?

support@tutorialshub.in

INTERMEDIATE PRACTICE TEST

JavaScript ES6+ Logic Challenge

Challenge your JS skills with array methods, closures, promises, async/await, hoisting, and modern ES6+ syntax.

5 Questions 15 Minutes Instant Scoring All Quizzes
Question 1 of 5
00:00

1. What does Array.prototype.map() return in JavaScript?

const nums = [1, 2, 3];
const res = nums.map(x => x * 2);

2. What is the output of typeof null in JavaScript?

console.log(typeof null);

3. Which keyword declares block-scoped variables that cannot be reassigned?

______ PI = 3.14159;

4. How do you handle errors and rejected Promises when using async/await syntax?

5. What is a Closure in JavaScript?

function makeCounter() {
let count = 0;
return () => ++count;
}
0% 0 / 0

Quiz Completed!

Here is your detailed performance breakdown.

Retake Quiz Learn JavaScript

Detailed Question Review