Menu

(Solved) : 1 Create Factorialwhile Function Uses Loop Otherwise Returns Results Following Function Fu Q31155475 . . .

// 1. Create a factorial_while function that uses a while loopbut otherwise // returns the same results as the followingfunction. function factorial_for(n) { var total = 1; for (var i =1; i <= n; i++) { total *= i; } return total; } //———-//// Do-While // //———-// console.log(“Do-While”); // 1. Do thesame for a factorial_do_while function. javascript question

Expert Answer


Answer to 1 Create Factorialwhile Function Uses Loop Otherwise Returns Results Following Function Fu Q31155475 . . .

OR