mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 16:26:47 +08:00
/* global alert, 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 alert, prompt */
|
||||
var num = prompt('Enter a number: ')
|
||||
alert(calcFactorial(num))
|
||||
|
Reference in New Issue
Block a user