
MAP & FILTER JS
Quiz
•
others
•
•
Practice Problem
•
Hard
Kouba Chorfi
FREE Resource
Enhance your content in a minute
5 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Predict the OUTPUT of this code Snippet: const numbers = [1, 2, 3, 4]; const doubled = numbers.map(item => item * 2); console.log(doubled);
2.
FILL IN THE BLANK QUESTION
30 sec • 2 pts
Predict the OUTPUT of this code Snippet: const numbers = [1, 2, 3, 4]; const evens = numbers.filter(item => item % 2 === 0); console.log(evens);
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct OUTPUT: const students = [ { name: 'Quincy', grade: 96 }, { name: 'Jason', grade: 84 }, { name: 'Alexis', grade: 100 }, { name: 'Sam', grade: 65 }, { name: 'Katie', grade: 90 } ]; const studentGrades = students.filter(student => student.grade >= 90); return studentGrades;
4.
FILL IN THE BLANK QUESTION
30 sec • 1 pt
Predict the output of this code: var arr = [1.5, 2.56, 5.1, 12.33]; var rounded = arr.map(Math.ceil); console.log(rounded);
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct OUTPUT: let employees = [ { "id": 11, "name":"Abhinav", "salary":75000 }, { "id": 2131, "name":"Raj", "salary":62000 }, { "id": 3012, "name":"Raj", "salary":32000 }] let idsArray = employees.map(employee =>employee.id) console.log(idsArray)
Similar Resources on Wayground
8 questions
Module 6 L1
Quiz
•
KG - University
10 questions
Cell Structure and Function CFA Practice
Quiz
•
9th Grade
10 questions
Activity no.1
Quiz
•
11th Grade
10 questions
TO BE/HAVE/WEAR
Quiz
•
KG - University
10 questions
Powers 7th Assessment ESS3-4
Quiz
•
KG - University
8 questions
Animal Farm QUIZ: Chapter 2
Quiz
•
9th - 12th Grade
6 questions
An invitation to a job interview – Preparation Task
Quiz
•
KG - University
6 questions
5-A-Days - Week 4 - Day 3
Quiz
•
KG - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for others
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
