Page 442 - Webapplication11_C11_Flipbook
P. 442
14. Factorial of a number means that the given number is multiplied by all the numbers preceding up to that number.
For eg,
5! = 5 × 4 × 3 × 2 × 1 = 120
Write a program in JavaScript to determine the factorial of a given number.
15. Write a JavaScript program to generate the following output using switch case statement.
440 Touchpad Web Applications-XI

