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 2273 times
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!