Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 1 | Object Destructuring#425
Sheffield | 26-ITP-Jan | Mahmoud Shaabo | Sprint 1 | Object Destructuring#425mahmoudshaabo1984 wants to merge 2 commits intoCodeYourFuture:mainfrom
Conversation
|
Hi CJ, I have just submitted my Pull Request for the Sprint 1 Object Destructuring exercises. The acceptance criteria have been met and the code is ready for your review whenever you have time. Thank you! |
| console.log( | ||
| String(quantity).padEnd(8) + itemName.padEnd(20) + itemTotal.toFixed(2) | ||
| ); |
There was a problem hiding this comment.
Good idea to use padEnd() to align the item in the first two columns.
How would you modify this code to align the value of itemTotal when its value is 10.00 or more?
|
Hi CJ, Thank you for your feedback. To align itemTotal when its value is 10.00 or more, This ensures the TOTAL column stays consistently Please let me know if you have any further comments. |
Note: Change is optional. |
Hello Reviewers / CodeYourFuture Team,
I have completed the Object Destructuring exercises for Sprint 1.
Acceptance Criteria Met:
introduceYourselffunction parameter inexercise-1to use object destructuring directly.for...ofloops and object destructuring inexercise-2to accurately filter Gryffindor members and teachers with pets.exercise-3to calculate the total cost and formatted the console output correctly.Thank you for your review!