"PENNY"
number of coins can't be fraction like 1.01
3
should the output be *3
?
*
characters
*
in it)
from mdn
If negative, it is treated as strLength + endIndex where strLength is the length of the string (for example, if endIndex is -3 it is treated as strLength - 3).
formatter
and a parser
so that once you read the value is back as a number