Skip to content

London | 26-ITP-Jan | Karla Grajales| Sprint 1 | Data Groups#1033

Open
Grajales-K wants to merge 20 commits intoCodeYourFuture:mainfrom
Grajales-K:Sprint-1
Open

London | 26-ITP-Jan | Karla Grajales| Sprint 1 | Data Groups#1033
Grajales-K wants to merge 20 commits intoCodeYourFuture:mainfrom
Grajales-K:Sprint-1

Conversation

@Grajales-K
Copy link

@Grajales-K Grajales-K commented Mar 17, 2026

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

In this project, I mastered TDD (Test Driven Development) while implementing various functions. I learned different ways to run tests, such as using npm test and npx jest --watch to run specific tests or all of them at once.

I also learned how to transition from a classic for loop to a for...of loop, which is simpler and more readable. I gained experience using array methods like .filter() and .reduce(), working with Math.max(), using the modulo operator (%), and manipulating arrays with the spread operator (...). This has given me a more confident and solid foundation in TDD.

Questions

I noticed that without the compare function (a, b) => a - b, the .sort() method treats numbers as strings (so '110' comes before '20'). Is it considered best practice to always provide a compare function even if we think the data is already clean?

Thank you for your time reviewing my code.

Grajales-K and others added 19 commits February 27, 2026 23:45
…handling empty arrays and cleaning all data that is not number.
Co-authored-by: Joseph Ajayi <ajayi-joseph@users.noreply.github.com>
@Grajales-K Grajales-K added 🏕 Priority Mandatory This work is expected 📅 Sprint 1 Assigned during Sprint 1 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Module-Data-Groups The name of the module. labels Mar 17, 2026
@Grajales-K Grajales-K changed the title London | 26-ITP-Jan | Karla Grajales| Sprint 1 | Data Groups Sprint-1 London | 26-ITP-Jan | Karla Grajales| Sprint 1 | Data Groups Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Data-Groups The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 🏕 Priority Mandatory This work is expected 📅 Sprint 1 Assigned during Sprint 1 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant