We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed06b15 commit 7deb9ecCopy full SHA for 7deb9ec
1 file changed
Sprint-1/3-mandatory-interpret/3-to-pounds.js
@@ -20,6 +20,13 @@ const pence = paddedPenceNumberString
20
// console.log(pence)
21
console.log(`£${pounds}.${pence}`);
22
23
+// This program takes a string representing a price in pence
24
+// The program then builds up a string representing the price in pounds
25
+
26
+// You need to do a step-by-step breakdown of each line in this program
27
+// Try and describe the purpose / rationale behind each step
28
29
+// To begin, we can start with
30
// 1. const penceString = "399p": initialises a string variable with the value "399p"
31
// 2. const penceStringWithoutTrailingP = penceString.substring(0, penceString.length-1): this
32
// variable creates a new string that cuts the penceSting to 399,so it basically creates a new
0 commit comments