mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-07 02:05:08 +08:00
factorial.js: /* global prompt */
This commit is contained in:
@ -48,6 +48,6 @@ function calcFactorial (num) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Run `factorial` Function to find average of a list of numbers.
|
// Run `factorial` Function to find average of a list of numbers.
|
||||||
/* global alert, prompt */
|
/* global prompt */
|
||||||
var num = prompt('Enter a number: ')
|
var num = prompt('Enter a number: ')
|
||||||
console.log(calcFactorial(num))
|
console.log(calcFactorial(num))
|
||||||
|
Reference in New Issue
Block a user