Enter a number:
New total:
JavaScript does some peculiar things when it comes to converting strings to numbers. Enter a string starting with a number, like '5abcd', or a string without any numbers into the entry field and see how the return value changes in the 'total' field.