Download JavaScript Code Examples, Tutorials, Reference

Provide thousands of free JavaScript code examples, DHTML, HTML JavaScript Tutorials, Reference and Help. JavaScriptBank.com is the best JavaScript resources




Over 2000+ free Javascript
at JavaScriptBank.com Website

Sampled by JavaScriptBank.com
Enter any number in the input box above and click the 'Click!' buton. The JavaScript runs through a sequence of numbers in the input box to gradually reduce the number to 1.

The sequence followed is: if the number is even, divide it by 2; if the number is odd, multiply it by 3 and add 1 to it. This process is continued until the number becomes 1.

© 2003 Premshree Pillai.