London | 26-ITP-May | Anita Amirhaeri | Sprint 2 | Structuring-and-Testing-Data - #1567
Open
anitahy73 wants to merge 10 commits into
Open
London | 26-ITP-May | Anita Amirhaeri | Sprint 2 | Structuring-and-Testing-Data#1567anitahy73 wants to merge 10 commits into
anitahy73 wants to merge 10 commits into
Conversation
Renamed variable 'str' to 'caps' to avoid redeclaration error.
Updated comments to explain the error and provided corrected code.
Corrected the function parameter from a number to a variable name.
Updated multiply function to return the product of two numbers and modified console log accordingly.
Fixed the sum function to return the correct value by placing the expression on the same line as the return statement.
Updated comments to include predictions, outputs, and explanations. Corrected the getLastDigit function to accept a parameter.
Added a function to convert strings to upper snake case.
Added a function to convert pence to pounds format.
Updated comments to clarify the behavior of the pad function in time formatting.
LonMcGregor
reviewed
Jul 27, 2026
LonMcGregor
left a comment
There was a problem hiding this comment.
Good work, and good explanations, the task is complete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Learners, PR Template
Self checklist
Changelist
Submission of coursework for Sprint 2
Questions