2022年2月16日解決済み

const [a, b, c, d] = scores; と書くのはなぜですか?

ユーザー
const scores = [80, 90, 40, 70];

と

const [a, b, c, d] = scores;

の違いがよくわからないのですが、何のために const [a, b, c, d] = scores; を書いたのでしょうか?

スタッフ

この回答を見るにはプレミアムプランへの登録が必要です

プレミアムプランとは?