Manchester | 26-ITP-Jan | Ofonime Edak | Sprint 1 | Feature/Destructuring#407
Manchester | 26-ITP-Jan | Ofonime Edak | Sprint 1 | Feature/Destructuring#407Ofonimeedak wants to merge 5 commits intoCodeYourFuture:mainfrom
Conversation
| } | ||
|
|
||
| introduceYourself(personOne); | ||
| console.log(introduceYourself(personOne)); |
There was a problem hiding this comment.
It logs this message to the console: Hello, my name is Popeye. I am 34 years old and my favourite food is Spinach.
When I run this on my terminal: Module-Data-Flows\sprint-1\destructuring\exercise-1> node exercise.js
| return totalCost; | ||
| }, 0); | ||
| const finalBill = grandTotal.toFixed(2); | ||
| console.log(`Total:${finalBill}`); |
There was a problem hiding this comment.
The formatting of the console output does not match the requirements
Luro91
left a comment
There was a problem hiding this comment.
Please apply the correct label next time when you need another review as I am using them to see where I need to rereview
|
|
||
| function orderReceipt(orderItems) { | ||
| const totalList = []; | ||
| console.log("QUANTITY ITEM TOTAL"); |
There was a problem hiding this comment.
Thank you, I have worked on this. Please kindly review
| const { firstName, lastName, house } = mate; | ||
| if (house === "Gryffindor") { | ||
| const gryffindorMates = `${firstName} ${lastName} lives in `; | ||
| console.log(gryffindorMates); |
There was a problem hiding this comment.
The output does not match the requirements:
I like the idea of making the logs more specific. However where to the people live in?
Harry Potter lives in
Ron Weasley lives in
Hermione Granger lives in
Minerva McGonagall lives in
Albus Dumbledore lives in
Harry Potter has a pet
Ron Weasley has a pet
Hermione Granger has a pet
Albus Dumbledore has a pet
Self checklist
Update and destructuring argument for a function
Write a function for the teacher's pet
print receipt function