JavaScript Taskbook Level 7.4

Задание 1

Given ul. Output the days of the current month. Highlight the current day and weekends in different colors.

Задание 2

Given a paragraph containing text with words. Make it so that when you click on any word from this paragraph, this word is highlighted in red.

Задание 3

Given an input and a button. A number of even digits is entered into it. By clicking on the button, check that the number is a lucky ticket, i.e. the sum of half the digits is equal to the sum of the other half of the digits.

Задание 4

Input is given. Text is entered into it. Make it so that no more than ten characters can be entered into the input. If the number is exceeded, the characters simply should not be entered.

Задание 5

Given an input, a paragraph and a button. A number is entered into the input. When you click the button, make the paragraph start ticking a countdown from the number entered into the input to zero.

Задание 6

Write a program that will generate the following array:

javascript[
  [1],
  [1, 2],
  [1, 2, 3],
  [1, 2, 3, 4, 5],
  [1, 2, 3, 4, 5, 6],
]