Introduction to the use of parseInt of methods for global objects in javascript
<html><head><title> Global object's parseInt() methods </title><script>document.write(parseInt("123") + "<br/>");//123document.write(parseInt("1abc23") + "<br/>");//1document.write(parseInt("123abc") + "<br/>");//123document.write(parseInt("abc") + "<br/>");//NaNdocument.write(parseInt("100",2) + "<br/>");//4, parse in binary formdocument.write(parseInt("123",2));//One, because two and three don't resolve</script></head><body><div id="time"></div></body></html>