CSC 230: The Week beginning Jan. 13 |
If you use a source (book or web site), cite your source.
Email the document.
parseInt()
to make sure user's input was interpreted as numbers and added (as opposed to
interpreted as text and concatenated).
text
to number
which made it harder for the user (in some browsers like Chrome)
to type characters that are not part of numbers. We saw that a minus sign and an "e" were allowed. Then
we introduced if
and isNaN()
to ask whether or not the user entered a number.