Javascriptで分割代入する方法 投稿日: 2022-08-252022-08-25 投稿者: pg-ito Javascriptでも分割代入(配列からばらばらの変数に代入)できます。 例えばこんな感じ let a,b; [a,b]=[5,6]; // a=5, b=6