Skip to content

Commit 641609b

Browse files
authored
Fix parameter for introduceYourself function
Updated the parameter of introduceYourself function to enable destructuring.
1 parent 17bb589 commit 641609b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sprint-1/destructuring/exercise-1/exercise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const personOne = {
66

77
// Update the parameter to this function to make it work.
88
// Don't change anything else.
9-
function introduceYourself({ name, favouriteFood, age }) {
9+
function introduceYourself(___________________________) {
1010
console.log(
1111
`Hello, my name is ${name}. I am ${age} years old and my favourite food is ${favouriteFood}.`
1212
);

0 commit comments

Comments
 (0)