What value is printed when executing the following code?
const arr = ['a', 'b', 'a', 'c', 'a'];
const result = arr.filter(letter => letter === 'a').length;
console.log(result);
What value is printed when executing the following code?
const arr = ['a', 'b', 'a', 'c', 'a'];
const result = arr.filter(letter => letter === 'a').length;
console.log(result);