Skip to content

Halyna R.#2

Open
halyna1995 wants to merge 4 commits intoHackYourAssignment:mainfrom
halyna1995:main
Open

Halyna R.#2
halyna1995 wants to merge 4 commits intoHackYourAssignment:mainfrom
halyna1995:main

Conversation

@halyna1995
Copy link

Complete 4 tasks for week 5

@hacdias hacdias self-assigned this Feb 14, 2026
Copy link

@hacdias hacdias left a comment

Choose a reason for hiding this comment

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

Hello @halyna1995! Overall good. I think it checks all the requisites.

  • The code could've been formatted for better readability. Some blank lines are good.
  • The "reflection" about the search algorithms is missing, but I'm not sure if it was necessary to put as comment.

See other comments inline!

Comment on lines 5 to 10
// Arrange
const numbers = [2, 4, 6];
// Act
const result = calculateAverage(numbers);
// Assert
expect(result).toBe(4);
Copy link

Choose a reason for hiding this comment

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

ℹ️ I'd simplify this to be less verbose:

Suggested change
// Arrange
const numbers = [2, 4, 6];
// Act
const result = calculateAverage(numbers);
// Assert
expect(result).toBe(4);
expect(calculateAverage([2, 4, 6])).toBe(4);

@hacdias hacdias added Reviewed This assignment has been reivewed by a mentor and a feedback has been provided and removed To review labels Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed This assignment has been reivewed by a mentor and a feedback has been provided

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants