From 4d856f8e274ddfea13a769ee2b7f4ea051c3a18e Mon Sep 17 00:00:00 2001 From: vinayak Date: Mon, 4 May 2020 23:49:42 +0530 Subject: [PATCH] Update factorial.js --- maths/factorial.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maths/factorial.js b/maths/factorial.js index febc5c0c4..211a5c741 100644 --- a/maths/factorial.js +++ b/maths/factorial.js @@ -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))