JavaScript Taskbook Level 5.3

Задание 1

Given a paragraph, an input and a button. A number is entered into the input. By pressing the button, the factorial of the entered number is output into the paragraph.

Задание 2

There are two inputs, a button and a paragraph. Integer numbers are entered into the inputs. Determine which of the entered numbers is greater and output it to the paragraph.

Задание 3

Given a button and an input. A number is entered into the input. By pressing the button, find the sum of the digits of the entered number.

Задание 4

Given a paragraph, input and a button. A word is entered into the input. When you press the button, the word is turned over and written into the paragraph.

Задание 5

Given empty paragraphs and a button. By clicking on the button, fill the paragraphs with numbers in order.

Задание 6

Given an input, a paragraph and a button. A number is entered into the input. By clicking on the button, the factorial of this number is output into the paragraph.