Skip to content

Conversation

@PawelBroilo
Copy link

Learners, PR Template

Self checklist

  • [x ] I have committed my files one by one, on purpose, and for a reason
  • [x ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • [x ] I have tested my changes
  • [x ] My changes follow the style guide
  • [x ] My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

PawelBroilo and others added 5 commits March 9, 2025 20:01
<!--

You must title your PR like this:

COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK

For example,

NW4 | Carol Owen | HTML-CSS-Module | Week1

Complete the task list below this message.
If your PR is rejected, check the task list.

-->

## Learners, PR Template

Self checklist

- [ ] I have committed my files one by one, on purpose, and for a reason
- [ ] I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
- [ ] I have tested my changes
- [ ] My changes follow the [style guide](https://curriculum.codeyourfuture.io/guides/contributing/)
- [ ] My changes meet the [requirements](./README.md) of this task

## Changelist

Briefly explain your PR.

## Questions

Ask any questions you have for your reviewer.
@prabhveer-mujral
Copy link

prabhveer-mujral commented Mar 28, 2025

Hi Pawel, good naming of commits, but I think you are missing COHORT_NAME in your PR title? Also, it may have been better to answer the task within the files themselves, rather than making new files.

@prabhveer-mujral prabhveer-mujral added the Reviewed Volunteer to add when completing a review with trainee action still to take. label Mar 28, 2025
//Equal sign in second expression means a sum firt variable + second variable ie. 0+1= 1
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
// Describe what line 3 is doing, in particular focus on what = is doing
// Line 3 adds 1 to the current value of count. 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!

let firstName = "Creola";
let middleName = "Katherine";
let lastName = "Johnson";
var initials = firstName[0] + middleName[0] + lastName[0];
Copy link

@prabhveer-mujral prabhveer-mujral Mar 28, 2025

Choose a reason for hiding this comment

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

Good answer, but line 8 will throw an error since you have already declared initials

// Create a variable to store the dir part of the filePath variable
// Create a variable to store the ext part of the variable
var ext=base.slice(base.lastIndexOf(".")+1)
const dir = filePath.slice(0, lastSlashIndex);

Choose a reason for hiding this comment

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

Again there's a duplicate of dir, this will throw errors when running the script. After removing that, it works well.

// Math.random generates a random number.
// It will help to think about the order in which expressions are evaluated
// Try logging the value of num and running the program several times to build an idea of what the program is doing
console.log(num); 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.

So by breaking down what num is doing, what is it doing first?

@PawelBroilo
Copy link
Author

PawelBroilo commented Mar 28, 2025 via email

@PawelBroilo PawelBroilo deleted the Sprint1 branch March 30, 2025 14:46
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.

3 participants