Skip to content

Commit ef7b5bd

Browse files
authored
Made "use strict" Global
1 parent 376a67c commit ef7b5bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

maths/factorial.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
https://en.wikipedia.org/wiki/factorial
1212
*/
1313

14+
"use strict";
15+
1416
function calc_range(num) {
1517
// Generate a range of numbers from 1 to `num`.
16-
"use strict";
1718
var i = 1;
1819
var range = [];
1920
while (i <= num) {
@@ -24,7 +25,6 @@ function calc_range(num) {
2425
}
2526

2627
function calc_factorial(num) {
27-
"use strict";
2828
var factorial;
2929
var range = calc_range(num);
3030

0 commit comments

Comments
 (0)