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)?

//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

// =============> 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"?

@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!

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

Labels

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.

2 participants