You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// then 'paddedPenceNumberString.substring(3 - 2)' becomes 'paddedPenceNumberString.substring(1)': this means grab everything from position '1' of the string to the end.
49
49
// That is -> '399.substring(1)' becomes '99'
50
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'
51
+
// 'const pence' would be assigned the new value: '99'
0 commit comments