mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-06 01:18:23 +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.
|
||||
/* global alert, prompt */
|
||||
/* global prompt */
|
||||
var num = prompt('Enter a number: ')
|
||||
console.log(calcFactorial(num))
|
||||
|
Reference in New Issue
Block a user