JavaScript Fundamentals Quiz

Question 1 of 10

What will this arrow function return?

const users = [
  { name: 'Alice', age: 25 },
  { name: 'Bob', age: 30 },
  { name: 'Charlie', age: 35 }
];

const result = users
  .filter(user => user.age > 25)
  .map(user => user.name);

console.log(result);

JavaScript Quiz Instructions

  • • Test your knowledge of functions, objects, arrays, and modern ES2015+ features
  • • Analyze the code examples carefully - syntax and logic both matter!
  • • You can navigate between questions using the Previous/Next buttons
  • • Detailed explanations are provided for each answer