Skip to content

Commit 79ff965

Browse files
Update 3-to-pounds.js
calling the function number of times to check it works for different inputs.
1 parent 8577ce0 commit 79ff965

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Sprint-2/3-mandatory-implement/3-to-pounds.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,8 @@ function toPounds(penceString) {
2222
.padEnd(2, "0");
2323

2424
return ${pounds}.${pence}`;
25-
}
25+
}
26+
console.log(toPounds("1p"));
27+
console.log(toPounds("99p"));
28+
console.log(toPounds("105p"));
29+
console.log(toPounds("12345p"));

0 commit comments

Comments
 (0)