Factorial
Enter an integer, then select to calculate the factorial by looping or recursively.
The following features are implemented:
- Only digits are allowed in the input.
- Output is in the form of an alert.
- Focus returns to input field on load, after operation and when debugWindow clicked.
- A debug window can be opened to see the transcript of function calls.