What value is printed when executing the following code?
const arr = ['apple', 'banana', 'cherry'];
const selection = arr.filter(f => f.startsWith('a'));
console.log(selection.length);
What value is printed when executing the following code?
const arr = ['apple', 'banana', 'cherry'];
const selection = arr.filter(f => f.startsWith('a'));
console.log(selection.length);