📜  破坏变量赋值 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:36.848000             🧑  作者: Mango

代码示例1
let profile = ['bob', 34, 'carpenter'];let [name, age, job] = profile;console.log(name);--> 'bob'