destructuring array and object

Run Settings
LanguageJavaScript
Language Version
Run Command
console.log("Hello World!"); let a = 1; let b= 2; [a, b] = [b, a] console.log(a,b); let firstName="John"; let lastName="Doe"; ({firstName, lastName, age} = { firstName: "Doe", lastName: "John", age: 18 }); console.log(firstName, lastName, age);
Editor Settings
Theme
Key bindings
Full width
Lines