const fruits = ["Banana", "Orange", "Apple", "Mango"]; fruits.length //return the length of an array, in this case it will be '4'
[....].filter(x => x==2).length