Skip to content

Commit c524311

Browse files
committed
Add explanation for final output in 3-to-pounds.js
1 parent 105bbf8 commit c524311

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ console.log(`£${pounds}.${pence}`);
5050
// '.padEnd(2, "0") is another method that ensures the string is at least 2 characters long and adding '0' to the end if it's too short.
5151
// 'const pence' would be assigned the new value: '99'
5252

53-
// 6. console.log(`$)
53+
// 6. console.log(`£${pounds}.${pence}`): This template string calls the result of two pieces, 'pounds' which is '3' and 'pence' which '99'
54+
// Overall result: £3.99

0 commit comments

Comments
 (0)