-
-
Notifications
You must be signed in to change notification settings - Fork 220
London | 25-ITP-May | Houssam Lahlah | Sprint 2 | Build quote generator #784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- 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
|
You have modified your I think the easiest way to fix the issue is to
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. |
Self checklist
Changelist
This pull request for syn my fork and updating my branch.
Questions
Please, Let me know if there is anything else went wrong?