JavaScript Taskbook Level 8.10
Задание 1
There are two inputs and a button. Numbers are entered into the inputs. By clicking on the button, check whether these numbers are friendly or not.
Задание 2
Given some array:
javascript[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
Given a variable:
javascriptlet n = 3;
Turn this array into a two-dimensional array, with n elements per subarray.
Задание 3
Given an array:
javascript[
[1, 2, 3, 4, 5],
[1, 2, 3],
[1, 2],
]
Add enough empty strings to each subarray so that the number of elements in each subarray is equal to the number of elements in the longest subarray.