Skip to content

Commit 4d856f8

Browse files
authored
Update factorial.js
1 parent 61d91ef commit 4d856f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maths/factorial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ function calcFactorial (num) {
5050
// Run `factorial` Function to find average of a list of numbers.
5151
/* global alert, prompt */
5252
var num = prompt('Enter a number: ')
53-
alert(calcFactorial(num))
53+
console.log(calcFactorial(num))

0 commit comments

Comments
 (0)