What is obtained when executing the following code?
const arr = [true, false, true];
const trues = arr.filter(Boolean).length;
console.log(trues);
What is obtained when executing the following code?
const arr = [true, false, true];
const trues = arr.filter(Boolean).length;
console.log(trues);