Skip to content

Conversation

@HoussamLh
Copy link

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

This pull request for syn my fork and updating my branch.

Questions

Please, Let me know if there is anything else went wrong?

HoussamLh added 30 commits July 25, 2025 20:42
- Changed console.log to use address.houseNumber instead of address[0]
- Ensures correct display of house number in output
- Replaced invalid for...of loop on object with Object.values()
- Ensures all property values of author are logged without errors
- Replaced object string output with ingredients joined by newline
- Ensures each ingredient is printed on its own line as intended
- Added 'contains' function to verify if an object has a given property key.
- Handles invalid inputs gracefully by returning false.
- Added comprehensive tests for empty objects, existing/non-existing properties, and invalid inputs.
- Created 'createLookup' function file with module export.
- Added a test.todo placeholder for creating country-currency code lookup functionality.
- Setup initial structure for implementation and testing.
- Updated 'parseQueryString' to correctly parse query string values containing '=' characters.
- Added test to verify parsing of complex values like 'equation=x=y+1'.
- Ensured other edge cases handled appropriately.
- Implemented 'tally' function to return an object with counts of each unique item.
- Throws error for invalid inputs (non-array).
- Added tests for empty arrays, duplicate counting, and invalid input error throwing.
- Changed from array-style access (address[0]) to object property access (address.houseNumber)
- Logs the house number correctly now
- Replaced invalid for...of loop over object with Object.values() to log all property values
- Added a for loop to print each ingredient on its own line
- Improved readability of recipe output
- Replaced incorrect property assignment with dynamic key
- Added tests for numeric and string values, and edge cases
- Converted coin keys (e.g. "1p") to numeric values before multiplication
- Fixed issue where multiplying string by number caused NaN result
- Added tests to verify correct total calculation and empty till case
- test case for handle large quantities
- Filters out non-number values before calculating median
- Sorts numbers without modifying input array
- Handles even and odd length arrays correctly
- Returns null for invalid or empty inputs
- dedupe removes duplicates preserving the first occurrence
- tests cover empty array, no duplicates, and arrays with duplicates
- Implemented findMax to return the largest numeric value in an array
- Ignores non-number elements and returns -Infinity for empty or no numeric input
- Added tests covering empty arrays, single element, positive/negative numbers, decimals, and mixed input types
- Added sum function to calculate the total of numeric elements in an array, ignoring non-numeric values.
- Created comprehensive tests covering empty arrays, negative numbers, decimals, and non-numeric inputs.
a traditional for loop for cleaner and more idiomatic iteration.
- Read full puzzle input from file
- Calculate resulting frequency by summing all changes
- Output the final frequency for submission
…author, and background color based on read status
…w controls

- Changed button IDs in HTML to 'auto-forward', 'auto-backward', and 'stop'
- Updated slideshow.js to use the new button IDs
- Fixed test errors caused by mismatched element IDs in automatic slideshow feature
- Uses that delay in milliseconds when auto-forward or auto-backward is activated.
- Disables/enables delay input along with auto buttons for a clean UX.
…listeners

- Changed input ID references to 'todoInput' to match HTML
- Added comments for clarity in populateTodoList, addNewTodo, and deleteAllCompletedTodos functions
- Ensured todo creation and deletion buttons work correctly
- Added event listeners for form submission and remove completed button
@HoussamLh HoussamLh added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 7, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Sep 7, 2025

You have modified your main branch. As a result, all branches you created from main will be "polluted". That's part of the reasons why this branch has 64 modified files!

I think the easiest way to fix the issue is to

  • Backup all your files
  • Delete the repo
  • Fork a new repo from CYF (You cannot fork if you don't delete the old one).
  • Create new branches for each of the exercises/projects and "restore" the files from your backed up copies.
  • Resubmit PRs.

If you want to practice committing one file at a time (in your newly created branches), in VSCode, you can select which file to stage, and commit only the staged file.
See: https://www.youtube.com/watch?v=z5jZ9lrSpqk&t=705 (At around 12:50 minute marker, the video shows how to stage a single file).

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 7, 2025
@HoussamLh HoussamLh closed this by deleting the head repository Sep 9, 2025
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