Question from the Javascript - Fundamentals test

Filter the elements of an array in Javascript

Easy

What can be said about the following code?

const notes = [10, 7, 9]; 
const average = notes.filter(x => x > 10); 
console.log(average); 
Author: KahinaStatus: Published(Update)Question passed 3217 times
Edit
4
Community EvaluationsNo one has reviewed this question yet, be the first!