We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 270bbe4 commit 1a0b4c9Copy full SHA for 1a0b4c9
Destructuring-Object.js
@@ -0,0 +1,11 @@
1
+
2
+// Destructuring Object - by using {}
3
4
+const mhs = {
5
+ nama: 'Godam Best',
6
+ umur: 23
7
+}
8
9
+const {nama, umur} = mhs;
10
+console.log(nama); // output: Godam Best
11
+console.log(umur); // output: 23
0 commit comments