Answers for "how to you access a function while object destructing in js"

0

javascript object destructing

const employee = {name: ‘ANE01’, email: ‘[email protected]’, phone:’0112–345–6789'};
//with destucturing
const {name, email, phone} = employee;
//without destucturing
const name = employee.name;
const email = employee.email;
const phone = employee.phone;
Posted by: Guest on November-12-2021

Code answers related to "how to you access a function while object destructing in js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language