Files
JavaScript/Maths
merelymyself 9513bcd77a merge: WhileLoopFactorial: Optimize and add tests (#992)
* Optimised the factorial function.

There was previously an unnecessary check for if the number was 0 or 1.

* Create WhileLoopFactorial.test.js

The test was not present previously.

* result *= num

* Update WhileLoopFactorial.test.js

* testFactorial function

* Space for formatting.

* should fix the formatting issues. I was having trouble with npx standard, so I just used the online verifier at https://standardjs.com/demo.html
2022-04-21 21:58:29 +05:30
..
2022-03-15 17:41:50 +05:30
2021-12-20 22:27:05 +05:30
2021-12-14 11:01:52 +05:30
2021-10-09 13:18:40 +02:00
2021-10-28 15:37:43 +05:30
2021-07-09 22:51:08 +05:30
2021-02-05 17:59:38 +05:30
2021-10-16 11:37:15 -03:00
2021-10-28 15:37:43 +05:30
2020-10-12 01:17:49 +05:30
2021-11-26 22:12:30 +05:30
2021-10-09 13:18:40 +02:00
2020-10-12 01:17:49 +05:30
2022-03-04 16:34:33 +05:30
2020-10-12 01:17:49 +05:30
2020-10-12 01:17:49 +05:30
2020-10-12 01:17:49 +05:30
2022-03-10 22:25:06 +05:30
2021-05-05 09:32:58 +05:30
2021-10-09 13:18:40 +02:00
2021-10-05 12:49:23 +05:30
2021-07-20 12:38:47 +08:00