A Collection of JavaScript code snippets just for fun

Calculate Factorials

The factorial function (symbol: !) means to multiply a series of descending natural numbers. Examples:

Enter a number to calculate the factorial:



The answer is:

?

Cash Register

Item Enter Amount: Cost Per Item

Your bill is:

0.00

Display the Fibonacci sequence up to a chosen number