Skip to content

Commit 5626552

Browse files
authored
Update Giving-Default-Value-And-Assign-New-Variable.js
1 parent 8a98058 commit 5626552

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Giving-Default-Value-And-Assign-New-Variable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ const mhs = {
1010
// Destructuring:
1111
const { nama_mhs : na, umur_mhs: um, email: em = '[email protected]' } = mhs;
1212

13-
// New Variable:
13+
// New Variable (Additional):
1414
console.log(em); // output: email@default.com
1515

16-
// Destructured:
16+
// Destructured with New Variables:
1717
console.log(um); // output: 34
1818
console.log(na); // output: Bala Dewa
1919

0 commit comments

Comments
 (0)