You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Destructuring is a way of extracting multiple values from data stored in objects and arrays. It allows us to have an array or object that we are working with, but we only need some of the items contained in these.
Task 1: Modify this function to use object destructuring for the inputs to display only the first name and hobby properties of the object to the console:
*/
const introduce = () => {
}
introduce(person);
//The output should be "Hello, my name is Jane and I love swimming!"