// 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
An answer will be send to you shortly. . . . .