Featured

JavaScript Interview #6: find Factorial of Any Numbers in JavaScript



Published
Welcome, JavaScript Interview #6: find Factorial of Any Numbers in JavaScript . The factorial function (symbol: !) says to multiply all whole numbers from our chosen number down to 1.

Examples:

4! = 4 × 3 × 2 × 1 = 24
7! = 7 × 6 × 5 × 4 × 3 × 2 × 1 = 5040
1! = 1

Category
Web design
Be the first to comment