Update factorial.js

This commit is contained in:
vinayak
2020-05-04 23:49:42 +05:30
committed by GitHub
parent 61d91efe9e
commit 4d856f8e27

View File

@ -50,4 +50,4 @@ function calcFactorial (num) {
// Run `factorial` Function to find average of a list of numbers.
/* global alert, prompt */
var num = prompt('Enter a number: ')
alert(calcFactorial(num))
console.log(calcFactorial(num))