const scores = [80, 90, 40, 70];
const [a, b, ...others] = scores;
console.log(a);
console.log(b);
console.log(others);
console.log(scores);
scoresに80, 90, 40, 70が入っているのはなぜでしょうか?
scoresの中身は空と思ったのですが。
この回答を見るにはプレミアムプランへの登録が必要です
プレミアムプランとは?