JavaScript Taskbook Level 5.9

Задание 1

Given an array with numbers, a button and an input. When you press the button, write all the numbers from the array to the input, separating them with commas.

Задание 2

Given paragraphs with text. Make it so that when you click on any paragraph, its text is colored red.

Задание 3

An input is given. A number is entered into it. If an odd number is entered, then paint the input border red, and if an even number, then green.

Задание 4

The input is a date in the format 2025-12-31. After losing focus, make the input a date in the format 35.12.2025.

Задание 5

An empty list ul and textarea are given. Text with punctuation marks is entered into it. After losing focus, write each sentence from the text into its tag li.