You are viewing a single comment's thread. Return to all comments →
Oh filter and result.length is so much simpler! Mine was a little longer
function birthdayCakeCandles(ar) { let tallest = Math.max(...ar) let candleCount = 0 ar.forEach((candle) => candle === tallest ? candleCount++ : null) return candleCount }
Birthday Cake Candles
You are viewing a single comment's thread. Return to all comments →
Oh filter and result.length is so much simpler! Mine was a little longer