There was an error while loading. Please reload this page.
1 parent 105bbf8 commit c524311Copy full SHA for c524311
1 file changed
Sprint-2/3-mandatory-interpret/3-to-pounds.js
@@ -50,4 +50,5 @@ console.log(`£${pounds}.${pence}`);
50
// '.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.
51
// 'const pence' would be assigned the new value: '99'
52
53
-// 6. console.log(`$)
+// 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