Javascript and HTML

The function parseInt in JavaScript does not work the same as in Java. It will change any digits at the beginning of a string into an integer and ignore anything after that. In this case it changes all characters before the decimal point into an integer. This removes all the ‘extra’ digits at the end. ................
................