Skip to content

Glasgow | ITP-MAY-2026 | Tuan Nguyen | Sprint 1 | Programming-fundamentals#1307

Open
Jacknguyen4438 wants to merge 19 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:programming-funamental-sprint-1
Open

Glasgow | ITP-MAY-2026 | Tuan Nguyen | Sprint 1 | Programming-fundamentals#1307
Jacknguyen4438 wants to merge 19 commits into
CodeYourFuture:mainfrom
Jacknguyen4438:programming-funamental-sprint-1

Conversation

@Jacknguyen4438
Copy link
Copy Markdown

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

Hell I this is my work that I have done and ready for resubmission.

Questions

No Question.

@Jacknguyen4438 Jacknguyen4438 added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Structuring-And-Testing-Data The name of the module. Core This is a core task and should be completed by all trainees labels May 6, 2026
@Jacknguyen4438
Copy link
Copy Markdown
Author

Hello to whom may concern with this PR this is course work that I have finished before hand and ready to be re review if I need to make some change please let me know.

@illicitonion illicitonion 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 May 14, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

This looks good, but a few small things to fix up


const dir = ;
const ext = ;
const dirDirectory = filePath.slice(1,filePath.lastIndexOf("/"));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The directory actually includes the leading / - can you fix this?


/*
Answer
a)In this program there are 5 variable declarations:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think you may have missed one - can you spot it?

- console.log(result); at line 10

c)At the line 3 we can see the the expression movieLength % 60,
what is represent is the reminder value after the division movieLength(in second) value by 60%;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
what is represent is the reminder value after the division movieLength(in second) value by 60%;
what is represent is the reminder value after the division movieLength(in second) value by 60

this is to remind how much left over second left in the movie.

d)In line 4, the the expression that is assigned to totalMinutes
represent the value after the math operation if movieLength value and remainingSeconds then divine by 60;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This doesn't quite make sense as a sentence, and also has a few typos - can you try to rewrite it?

represent the value after the math operation if movieLength value and remainingSeconds then divine by 60;

e)For the variable result it represent the combine total time length of the movie in hour/minutes/second template, for better name for this variable
I would to rename it to formattedMovieDuration.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good alternative name!

@illicitonion illicitonion added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Core This is a core task and should be completed by all trainees Module-Structuring-And-Testing-Data The name of the module. Reviewed Volunteer to add when completing a review with trainee action still to take. 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants