Skip to content

Conversation

@shaghayeghfar
Copy link

@shaghayeghfar shaghayeghfar commented Oct 17, 2025

Learners, PR Template

Self checklist

  • 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

Changelist

read the question , understand what i was asked for. answered the question and tried to fix if there were any bugs.

@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Sprint part (Module Structuring and Testing Data) doesn't match expected format (example: 'Sprint 2', without quotes)

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

1 similar comment
@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Sprint part (Module Structuring and Testing Data) doesn't match expected format (example: 'Sprint 2', without quotes)

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@shaghayeghfar shaghayeghfar changed the title London | 25-ITP-SEP| Shaghayegh far | Module Structuring and Testing Data | Coursework Sprint 2 London | 25-ITP-SEP| Shaghayegh far | Module Structuring and Testing Data-Coursework Sprint 2 Oct 17, 2025
@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@shaghayeghfar shaghayeghfar added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Oct 17, 2025
@github-actions
Copy link

Your PR's title isn't in the expected format.

Please check the expected title format, and update yours to match.

Reason: Wrong number of parts separated by |s

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@shaghayeghfar shaghayeghfar changed the title London | 25-ITP-SEP| Shaghayegh far | Module Structuring and Testing Data-Coursework Sprint 2 London | 25 Sep ITP | Shaghayegh Shirinfar | Sprint 2 | Module Structuring and Testing Data Coursework Sprint 2 Oct 17, 2025
@github-actions
Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

@shaghayeghfar shaghayeghfar changed the title London | 25 Sep ITP | Shaghayegh Shirinfar | Sprint 2 | Module Structuring and Testing Data Coursework Sprint 2 London | 25-ITP-SEP | Shaghayegh Shirinfar| Sprint 2 | coursework/sprint-2 Oct 17, 2025
@github-actions
Copy link

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).

const dir = ;
const ext = ;
const dir = filePath.slice(0, lastSlashIndex);
const ext = base.slice(base.lastIndexOf("."));

Choose a reason for hiding this comment

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

Just as an extension - how would you write this if I just wanted the extension type without the . (So txt in this case rather than .txt)?

Copy link
Author

Choose a reason for hiding this comment

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

const ext = base.slice(base.lastIndexOf(".") + 1);

//Answer: line 1, 2, 6, 7

// e) Describe what the expression Number(carPrice.replaceAll(",","")) is doing - what is the purpose of this expression?
//Answer: Remove formatting commas from the price string and then convert it to a number so we can do arithmetic.

Choose a reason for hiding this comment

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

Very nice!


// a) How many function calls are there in this file? Write down all the lines where a function call is made
// a) How many function calls are there in this file? Write down all the lines where a function call is made :
//Answer : 5 functions
Copy link

@ckirby19 ckirby19 Oct 25, 2025

Choose a reason for hiding this comment

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

What are those 5 function calls? Please identify which lines these function calls are on

Copy link
Author

Choose a reason for hiding this comment

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

line 4 : replaceAll, Number
line 5 : replaceAll, Number
line 10 : console.log()

// =============> write your new code here
// =============> Corrected Code:
function square(num) {
return num

Choose a reason for hiding this comment

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

Does this still fulfil the purpose of this function - to "square any number"?

Copy link
Author

Choose a reason for hiding this comment

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

function square(num) {
return num * num;
}

@ckirby19 ckirby19 added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. Reviewed Volunteer to add when completing a review with trainee action still to take. 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 Oct 25, 2025
@ckirby19
Copy link

Very nice, I just have a few questions but otherwise this looks great!

@shaghayeghfar
Copy link
Author

@ckirby19

Dear Conor,

Thank you very much for reviewing my code and for your advice and help
I really appreciate it!

Thanks again,

@shaghayeghfar
Copy link
Author

@ckirby19
Dear Conor;

I hope you’re doing well! Sorry to bother you .
I know you’re busy, but if you have some time later, could you please review my changes and complete my PR status? I need to submit the module as soon as possible, and I can’t do so until the PRs are finalized.

Many thanks, and sorry for any inconvenience!

Best regards,

@ckirby19
Copy link

ckirby19 commented Nov 3, 2025

@ckirby19

Dear Conor;

I hope you’re doing well! Sorry to bother you .

I know you’re busy, but if you have some time later, could you please review my changes and complete my PR status? I need to submit the module as soon as possible, and I can’t do so until the PRs are finalized.

Many thanks, and sorry for any inconvenience!

Best regards,

Apologies I wasn't able to change the tag to completed last time I checked! I will try again now but if not, please reach out on slack to get the complete tag added, apologies!

@shaghayeghfar shaghayeghfar added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Nov 4, 2025
@mjpeet mjpeet added 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. labels Nov 5, 2025
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants