Skip to content
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

London07/Loveth-Okafor/Module-Structuring-and-Testing-Data/Sprint 2(key errors)-/WEEK2 #248

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
2cc775a
the variable is being explain directory
loveth900 Jan 28, 2025
1a80631
The + operator concatenates the first characters to form the string "…
loveth900 Jan 28, 2025
64d70b9
the num was input proper
loveth900 Jan 28, 2025
24ae22c
i have converted them into comments
loveth900 Jan 28, 2025
0eebb5d
i allow reassignment of the age
loveth900 Jan 28, 2025
556e0cb
the correct output is bolton
loveth900 Jan 28, 2025
d1aed89
the code did not work because the .slice can only be used on a string…
loveth900 Jan 28, 2025
7f2ed9a
variable cannot start with a number.
loveth900 Jan 30, 2025
2aae128
extracts and displays the base, dir, and ext parts of the file path.
loveth900 Jan 30, 2025
48ac3d7
A variable reassignment occurs when we change the value of an already…
loveth900 Jan 30, 2025
3e66c4e
variable declarations are allowed
loveth900 Jan 30, 2025
f98afd4
This ensures the program correctly converts any valid input into poun…
loveth900 Jan 30, 2025
10ca884
str is already defined as a function parameter.
loveth900 Jan 30, 2025
1ad2256
The function parameter decimalNumber is redeclared
loveth900 Jan 30, 2025
ff6c67a
The function declaration should define a generic parameter
loveth900 Jan 30, 2025
a0dea50
the function returns the correct value
loveth900 Jan 30, 2025
46b994c
the function correctly returns the sum
loveth900 Jan 30, 2025
3f3bd9f
the function was decleared
loveth900 Jan 30, 2025
8b73659
yhe value of the BMI was returned
loveth900 Jan 30, 2025
6f7fd2e
the upper case was replace
loveth900 Jan 30, 2025
c1909c6
This function is now reusable for any weight input
loveth900 Jan 30, 2025
fa44d50
formatTimeDisplay
loveth900 Jan 30, 2025
417bdc3
various inputs were declared
loveth900 Jan 30, 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
Prev Previous commit
Next Next commit
This ensures the program correctly converts any valid input into poun…
…ds and pence format.
  • Loading branch information
loveth900 committed Jan 30, 2025
commit f98afd4469a8dbeeb4d47db480eb004537fa03cb
2 changes: 1 addition & 1 deletion Sprint-1/3-mandatory-interpret/3-to-pounds.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const pence = paddedPenceNumberString
.substring(paddedPenceNumberString.length - 2)
.padEnd(2, "0");

console.log(`£${pounds}.${pence}`);
console.log(`£${pounds}.${pence}`);

// This program takes a string representing a price in pence
// The program then builds up a string representing the price in pounds
Expand Down