Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const contact = {
- person: 'Bai Gosho',
- phone: '0879999999'
- };
- console.log(contact);
- const { person, phone } = contact;
- console.log(person);
- console.log(phone);
- const { person: personName, phone: personPhone } = contact;
- console.log(personName);
- console.log(personPhone);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement