Skip to content

Conversation

alexandru-pocovnicu
Copy link

@alexandru-pocovnicu alexandru-pocovnicu commented Sep 29, 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

Completed Sprint 1 exercises in which i added comments, fixed errors,and interpreted code

Questions

In 1-key-exercises - 4-random.js I understand the methods but don't understand why this " (maximum - minimum + 1)) + minimum " is necessary s

@alexandru-pocovnicu alexandru-pocovnicu added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 29, 2025
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

5 similar comments
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

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

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

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

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

@alexandru-pocovnicu alexandru-pocovnicu changed the title London|ITP-25-September|Alexandru Pocovnicu|Sprint 1 Coursework London|ITP-25-September|Alexandru Pocovnicu|Sprint 1| Coursework Sep 29, 2025
@alexandru-pocovnicu alexandru-pocovnicu changed the title London|ITP-25-September|Alexandru Pocovnicu|Sprint 1| Coursework London|25-ITP-September|Alexandru Pocovnicu|Sprint 1| Coursework Oct 4, 2025
@LonMcGregor LonMcGregor 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 Oct 6, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start on this sprint's tasks, I have spotted a few areas where you could improve code further, or things you might want to discuss


const dir = ;
const ext = ;
const dir = filePath.slice(1,lastSlashIndex);

Choose a reason for hiding this comment

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

In a directory, the first / is important to include when programming. Can you make sure it is captured?


// https://www.google.com/search?q=get+first+character+of+string+mdn

// I really can't understand any of the documentation from developer.mozilla

Choose a reason for hiding this comment

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

What is difficult to understand about the MDN docs?

const age = 33;
age = age + 1;
//the "age" variable has been declared with a const and already assigned a value and it can not
// be reassigned another value because of the "const"

Choose a reason for hiding this comment

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

What change is needed to fix this?


console.log(`I was born in ${cityOfBirth}`);
const cityOfBirth = "Bolton";
//a variable needs to be declared before being initialized

Choose a reason for hiding this comment

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

Can you change the code so that it works?

//total time in minutes without the remaining seconds

// e) What do you think the variable result represents? Can you think of a better name for this variable?
//"Movie length"

Choose a reason for hiding this comment

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

Is it clear what the difference is between the new "movielength" and original movieLength variables? Could I understand the difference by quickly reading these two variable names?

//"Movie length"

// f) Try experimenting with different values of movieLength. Will this code work for all values of movieLength? Explain your answer
//it will work with all values as long as they are numbers,

Choose a reason for hiding this comment

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

consider all the edge cases - are there any inputs that might give strange formatting?

@LonMcGregor LonMcGregor 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 Oct 6, 2025
@LonMcGregor
Copy link

In 1-key-exercises - 4-random.js I understand the methods but don't understand why this " (maximum - minimum + 1)) + minimum " is necessary s

If you want to investigate this, it might be helpful to try running the code yourself, but changing this (e.g. removing some parts) to see what, if anything, stops working.

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