Manchester | 26-ITP-Sep | Rahana Suleiman | Sprint 3 | Complete Sprint 3 Coursework - #1622
Open
rahanasuleiman8-ship-it wants to merge 14 commits into
Open
rahanasuleiman8-ship-it wants to merge 14 commits into
rahanasuleiman8-ship-it wants to merge 14 commits into
Conversation
…pdate comments - predict and explain the outcome of the code
…e convertToPercentage - Update console.log to pass argument to convertToPercentage instead of logging decimalNumber
- resolve parameter syntax error in square function
- Pass returned value into template literal expression
… explanations - Move expression a + b onto the same line as return keyword - Prevent the function from returning undefined on a newline
…ect last digit - Predict and explain hardcoded global variable behavior before fixing
- Chain toUpperCase() and replaceAll() to format spaces as underscores - Add console logs to verify the code is working
- Refactor time formatting functions for consistency and clarity - Explain string padding logic and modulo operator calculations for 61 seconds
…d add comprehensive test cases
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
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.

Self checklist
Task code
CYF-1053
This Pull Request completes the JavaScript fundamentals coursework for Sprint 3 by resolving core syntax errors, fixing variable scope and function return issues, and implementing key utility functions like BMI calculation, string case conversion, and currency formatting. It also documents line-by-line execution tracing for nested functions and refactors the formatAs12HourClock utility to accurately handle edge cases like midnight, noon, single-digit PM hours, and minute preservation—all backed by a full console.assert test suite.