📅  最后修改于: 2022-03-11 14:57:18.889000             🧑  作者: Mango
function birthdayCakeCandles(candles) {
const max = Math.max(...candles)
const store = []
for(let i = 0; i < candles.length ; i++) {
if(candles[i] >= max) {
store.push(candles[i])
}
}
return store.length
}