Skip to content

Commit 1a0b4c9

Browse files
authored
Create Destructuring-Object.js
1 parent 270bbe4 commit 1a0b4c9

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Destructuring-Object.js

+11
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)