Question from the Javascript test

Filter an array in JavaScript

Easy

Consider the following JavaScript code:

const array = [1, 2, 3, 4, 5];
const filteredArray = array.filter(num => num > 3);

What will filteredArray contain after executing this code?

Author: AxelStatus: PublishedQuestion passed 29 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!