Skip to content

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 1 | Coursework#936

Open
Elisabeth-Matulian wants to merge 22 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:coursework/sprint-1
Open

Glasgow | Jan-26 | Elisabeth Matulian | Sprint 1 | Coursework#936
Elisabeth-Matulian wants to merge 22 commits intoCodeYourFuture:mainfrom
Elisabeth-Matulian:coursework/sprint-1

Conversation

@Elisabeth-Matulian
Copy link

@Elisabeth-Matulian Elisabeth-Matulian commented Feb 7, 2026

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

  • Completed key exercises
  • Completed mandatory errors
  • Completed mandatory interpret
  • Completed stretch explore

@github-actions

This comment has been minimized.

@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 7, 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 Feb 7, 2026
@github-actions

This comment has been minimized.

@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 7, 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 Feb 7, 2026
@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 7, 2026
@Theoreoluwa Theoreoluwa added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Feb 13, 2026
const dir = ;
const ext = ;

const dir = filePath.slice(0, filePath.lastIndexOf("/",lastSlashIndex - 1));

Choose a reason for hiding this comment

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

Can you take a look at the output this line gives you and check if it aligns exactly with the full dir path as indicated in the task?

Copy link
Author

Choose a reason for hiding this comment

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

I removed the second parameter from lastIndexOf and reused the existing lastSlashIndex variable

Comment on lines 1 to 9

Choose a reason for hiding this comment

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

Yes, you updated the cardNumber variable, but you need to explain your reasoning behind it as indicated in the comments for the task.

Copy link
Author

Choose a reason for hiding this comment

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

My bad:)
I initially thought this reasoning should be done mentally rather than written in the code. Thanks for mention it

const 12HourClockTime = "20:53";
const 24hourClockTime = "08:53"; No newline at end of file
const ClockTime12Hour = "20:53";
const ClockTime24Hour = "08:53"; No newline at end of file
Copy link

@Theoreoluwa Theoreoluwa Feb 14, 2026

Choose a reason for hiding this comment

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

Very good variable naming convention. A bit of explanation with comments as to why you got an error and how you figured out the solution would help better practice.

Copy link
Author

Choose a reason for hiding this comment

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

Thanks. Comment added

// d) This way, we find out how many full minutes the film lasts.

// e) What do you think the variable result represents? Can you think of a better name for this variable?
// e) This variable stores information about the exact length of the film (hours:minutes:seconds). I would call it “hoursMinutesSeconds”

Choose a reason for hiding this comment

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

This part is really subjective, but if you could go with a better variable name based on the context provided from the existing variable names, that would be better.

Copy link
Author

Choose a reason for hiding this comment

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

I updated the name of the variable

Comment on lines 20 to 21
What is the return value of `prompt`?
Answer: undefined

Choose a reason for hiding this comment

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

You can recheck if the return type is actually what you say it is. If you input your name in the prompt, you should get the datatype for your name returned.

Copy link
Author

Choose a reason for hiding this comment

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

updated with the correct answer

Copy link

@Theoreoluwa Theoreoluwa left a comment

Choose a reason for hiding this comment

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

Kindly look into my comments and adjust them accordingly. Great job so far, keep going!

@Theoreoluwa Theoreoluwa added 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 Feb 14, 2026
// Read the code and then answer the questions below

// a) How many function calls are there in this file? Write down all the lines where a function call is made
// a) Lines 4,5,10

Choose a reason for hiding this comment

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

You need to include a number of function calls in there after looking into each line properly.

Copy link
Author

Choose a reason for hiding this comment

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

answer added for the first question. I need to be more attentive%)

Copy link
Author

Choose a reason for hiding this comment

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

Thank you for checking my coursework and for your detailed feedback. I have updated it. Could you please take another look when you have a moment?

@Elisabeth-Matulian Elisabeth-Matulian added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 14, 2026
Comment on lines +7 to +11
// .slice() method works with String type, not with Number type. Therefore there will be an error
// Then run the code and see what error it gives.
// Consider: Why does it give this error? Is this what I predicted? If not, what's different?
// Then try updating the expression last4Digits is assigned to, in order to get the correct value
// the error is: "TypeError: cardNumber.slice is not a function" this matches my prediction. The error occurred because the method doen't work with Number type. I've changed cardNumber to a String when added quotes around the number. No newline at end of file

Choose a reason for hiding this comment

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

Now, you did the right thing by explaining your reasoning to debug the error. I would suggest applying a much cleaner way to convert the variable into a string without redeclaring it. You can look into that method using MDN docs.

Comment on lines +1 to +3
const ClockTime12Hour = "20:53";
const ClockTime24Hour = "08:53";
// variable names cannot start with a number in JavaScript syntax No newline at end of file

Choose a reason for hiding this comment

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

Good comment. I would advise you use camelCase as your variable naming convention instead of PascalCase as that is more suitable for class names.

What effect does calling the `prompt` function have?
Answer: A window pops up in the browser with a text input field
What is the return value of `prompt`?
Answer: the text that I entered in the input field that is stored in myName variable No newline at end of file

Choose a reason for hiding this comment

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

Good explanation, but you need to learn to explicitly state the data type you are referring to when answering questions from the task.

@Theoreoluwa Theoreoluwa added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Feb 15, 2026
Copy link

@Theoreoluwa Theoreoluwa left a comment

Choose a reason for hiding this comment

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

You've done very well, Elisabeth. Please, pay attention to my comments, as you will find them relevant as you carry on your journey. I will now mark your sprint PR as completed. Good luck and keep going!

@Theoreoluwa Theoreoluwa 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. Reviewed Volunteer to add when completing a review with trainee action still to take. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 15, 2026
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.

2 participants