JavaScript Taskbook Level 10.3

Задание 1

Make an input that only accepts numbers. No other characters should be entered into the input.

Задание 2

Given a block. When clicked on, show a tooltip with some fairly long text. Show the tooltip either at the top or bottom, taking into account that it fits entirely on the screen and does not go under the scroll.

Задание 3

Given an array of six digits, check if you can assemble a winning ticket from these digits.

Задание 4

Given a rectangular table. By pressing the button, paint the cells of one diagonal red and the second diagonal green.

Задание 5

Write a code that will generate a password of a given size. The password must contain a lowercase and uppercase letter, a number, and some special symbol.

Задание 6

Given a browser window, make the elements that are entirely in the left half of the window turn green, those that are entirely in the right half of the window turn blue, and those that are in both turn red.

Задание 7

Given two numbers, display the process of dividing these numbers in a column, as in school.

Задание 8

Given a string containing two numbers and a mathematical operation between them:

javascript'10 + 20'

Write code that will calculate the result of the written mathematical operation.