Skip to content

Glasgow | 26-ITP-Jan| Martin McLean |Sprint 1|Object Destructuring#388

Closed
mjm-git185 wants to merge 8 commits intoCodeYourFuture:mainfrom
mjm-git185:feature/destructuring
Closed

Glasgow | 26-ITP-Jan| Martin McLean |Sprint 1|Object Destructuring#388
mjm-git185 wants to merge 8 commits intoCodeYourFuture:mainfrom
mjm-git185:feature/destructuring

Conversation

@mjm-git185
Copy link
Copy Markdown

Changelist

I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
My changes meet the requirements of the task
I have tested my changes
My changes follow the style guide
my coursework

@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 26, 2026
Copy link
Copy Markdown

@codeschris codeschris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have left some comments on areas you need to check on to ensure your code is readable and clean.


function nameAndHoues(arr){
let namesOfGryffindor =""
for ( let i =0; i<arr.length; i++){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check on the indentation of this block right here

];


function receipt(arr){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation of this code block is not correct.

@codeschris codeschris added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 30, 2026
@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 30, 2026
@github-actions

This comment has been minimized.

@github-actions github-actions Bot removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 30, 2026
@mjm-git185 mjm-git185 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Mar 30, 2026
Comment on lines +16 to +31
for(let i=0; i<order.length; i++){
const{itemName,quantity,unitPricePence} = arr[i]


subTotal = unitPricePence * quantity;
let unitPricePenceAsCash = ( unitPricePence / 100 )
unitPricePenceAsCash = unitPricePenceAsCash.toFixed(2)
totalPrice += subTotal


totals = quantity + itemName + unitPricePenceAsCash
// totals = `${quantity} ${itemName} ${unitPricePenceAsCash}`

console.log("%c",totals, );

}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation in this code block is not correct.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i have given it as tidy up

@mjm-git185 mjm-git185 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Mar 31, 2026
@mjm-git185
Copy link
Copy Markdown
Author

hi Chris i have sorted the indentations is there any thing else needing adressed

@codeschris
Copy link
Copy Markdown

All is well now!

@mjm-git185
Copy link
Copy Markdown
Author

thanks for your help

@mjm-git185
Copy link
Copy Markdown
Author

would you mind changing the label to complete when you have a free minute

@codeschris codeschris added Reviewed Volunteer to add when completing a review with trainee action still to take. Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Apr 4, 2026
@illicitonion
Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants