Problem:
Question 1: Do you find the use of functions beneficial in your coding? Also, describe the anatomy of JavaScript functions. Provide a brief explanation for your answer.
Question 2: Write a program that prompts the user for an integer N and then computes the value for: 1 * 2 * 3 *... * N For example if the user enters 4, the program prints 24 (because 1*2*3*4 is 24). You do not need to show what numbers are multiplied (e.g. 1 * 2 * 3 * 4) Write the code step by step and explain it.