File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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, age, favouriteFood} ) {
9+ function introduceYourself ( { name, age, favouriteFood } ) {
1010 console . log (
1111 `Hello, my name is ${ name } . I am ${ age } years old and my favourite food is ${ favouriteFood } .`
1212 ) ;
Original file line number Diff line number Diff line change @@ -80,13 +80,11 @@ function gryffindorMembers(hogwarts) {
8080
8181console . log ( gryffindorMembers ( hogwarts ) ) ;
8282
83-
84-
8583function petsOwners ( hogwarts ) {
86- return hogwarts
87- . filter ( ( { occupation, pet } ) => occupation === "Teacher" && pet !== null )
84+ return hogwarts
85+ . filter ( ( { occupation, pet } ) => occupation === "Teacher" && pet !== null )
8886 . map ( ( { firstName, lastName } ) => `${ firstName } ${ lastName } ` )
8987 . join ( "\n" ) ;
9088}
9189
92- console . log ( petsOwners ( hogwarts ) ) ;
90+ console . log ( petsOwners ( hogwarts ) ) ;
Original file line number Diff line number Diff line change @@ -35,4 +35,4 @@ function printReceipt(order) {
3535 console . log ( "\nTotal: " + ( total / 100 ) . toFixed ( 2 ) ) ;
3636}
3737
38- printReceipt ( order ) ;
38+ printReceipt ( order ) ;
You can’t perform that action at this time.
0 commit comments