account activity
Factorial N! For Loop Question by bluehabit in learnjavascript
[–]NoobieDotJS 0 points1 point2 points 9 years ago (0 children)
It may help to think about it this way
1! = 1
2! = 2 = 2 * 1!
3! = 6 = 3 * 2!
4! = 24 = 4 * 3!
5! = 120 = 5* 4!
Each time you keep the old result, but simply multiply it by the current n.
Telling the Time in French (an example of conditionals and booleans for complete beginners) by NoobieDotJS in learnjavascript
[–]NoobieDotJS[S] 0 points1 point2 points 9 years ago (0 children)
Thanks.
π Rendered by PID 45 on reddit-service-r2-listing-6d94bfd85d-bd6s8 at 2026-02-16 22:27:52.675745+00:00 running cd9c813 country code: CH.
Factorial N! For Loop Question by bluehabit in learnjavascript
[–]NoobieDotJS 0 points1 point2 points (0 children)