Hi. I don't code javascript, but maybe you can use an array to store the strings representing the numbers. After that you can index that array using your tableNumber and tableIndex. For example:
// Put all of the strings in an aray
var numbers = new Array("zero","one", "two", "three", ...);
After that, you can do this:
document.write( numbers[tableIndex] + " times " +
numbers[tableNumber] + " is " +
numbers[thisResult] + "<BR>")
This is just a suggestion. It may be inefficient for what you are doing, but it should work. (Sorry if the syntax for the script is incorrect)
Bookmarks