JavaScript Taskbook Level 5.1

Задание 1

There are two inputs, a paragraph and a button. Numbers are entered into the inputs. When you click the button, output the sum of these numbers into the paragraph.

Задание 2

Given a paragraph with a number and a button. By clicking on the button, square the paragraph text.

Задание 3

Given paragraphs with numbers, a paragraph and a button. By pressing the button, find the sum of the values ​​of the paragraphs and write it in the paragraph.

Задание 4

Given paragraphs with numbers. Make it so that when you click on any paragraph, its value is squared.

Задание 5

Given inputs into which numbers are entered. Make it so that when focus is lost in any input, its value is squared.