πŸ“š ****Reference


Destructuring assignment


μ˜ˆμ‹œ


const person = {
	name: 'Jenny',
	age: 20, 
	phone: '0000000000'
}

function displayPerson(person){
	displayAvatar(person.name);
	displayName(person.name);
	displayProfile(person.name, person.age);
}

function displayPerson(person){
	const name = person.name;
	const age = person.age;
	displayAvatar(name);
	displayName(name);
	displayProfile(name, age);
}