Skip to content
Open
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
a318e04
called a function , interpreted the error message
alexandru-pocovnicu Oct 3, 2025
686be02
fixed the code to log the function and not the parameter
alexandru-pocovnicu Oct 3, 2025
763574c
fixed the function to return the square of a number by replacing the …
alexandru-pocovnicu Oct 3, 2025
f7173fc
replaced console.log with return inside the function
alexandru-pocovnicu Oct 3, 2025
9bfd01a
removed the semicolon after the "return" and moved "a+b" on the same …
alexandru-pocovnicu Oct 3, 2025
58fda13
removed unused code and updated the parameter
alexandru-pocovnicu Oct 3, 2025
0b055f8
implemented a function that calculates bmi with one decimal
alexandru-pocovnicu Oct 3, 2025
b9c50c9
implemented a function that turns a string in to snake uppercase
alexandru-pocovnicu Oct 3, 2025
e02e2e7
updated the function to replace all the spaces between words with"_"
alexandru-pocovnicu Oct 3, 2025
e9b8d94
created a function that converts pence in to pounds
alexandru-pocovnicu Oct 3, 2025
57ad058
added comments to answer the questions
alexandru-pocovnicu Oct 3, 2025
c688a68
wrote test cases for edge cases and updated the function accordingly
alexandru-pocovnicu Oct 3, 2025
6aa1613
fix: add space for readability in time formatting condition
alexandru-pocovnicu Oct 3, 2025
ad3dfa9
style: format code for consistency and readability
alexandru-pocovnicu Oct 20, 2025
b2a5048
refactor: simplify BMI calculation by removing unnecessary string con…
alexandru-pocovnicu Oct 20, 2025
b2684a1
fix: correct time formatting logic for midnight and noon cases
alexandru-pocovnicu Oct 20, 2025
dab924b
fix: update password validation logic
alexandru-pocovnicu Oct 23, 2025
9c73a1c
fix: ensure BMI result is returned as a number
alexandru-pocovnicu Oct 24, 2025
03018e6
fix: correct comparison operators and format output for consistency i…
alexandru-pocovnicu Oct 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sprint-2/5-stretch-extend/format-time.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
function formatAs12HourClock(time) {
const hours = Number(time.slice(0, 2));
const minutes=time.slice(3,5)
if(hours===0){
if(hours==0){
return `12:${minutes} am`
}
if(hours===12 ){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the === if one of the if statements, but not the other?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i shouldn't have changed it in the first place

Expand Down