配列の分割代入
#モダンJavaScriptの基本から始めるreact実践の教科書
分割代入しない場合
code: .js
const myProfile =
"田中", 24
;
// 取得
myProfile
0
//=> "田中"
myProfile
1
//=> 24
分割代入するとこう書ける
code: .js
const myProfile =
"田中", 24
;
// 分割代入する
const
name, age