How to get a JavaScript factorial programs' loop to show the working used?
问题 Hello there I have been challenged to write a program in JavaScript despite not really knowing much about it that asks the user for a number and then calculates the factorial of that number. I used already asked questions and managed to get the calculation to work but couldn't get the required output. I have to get it in the following output without using any fancy libraries or extra variables/arrays (which I can't think of how to do) : (assuming user input is 5): The factorial of 5 is 5*4*3