JavaScript Taskbook Level 2.8
Given a string of letters, check that there are no more than two capital letters in this string.
A certain line is given:
'1 22 333 4444 22 5555 1'
Remove from this string all substrings in which the number of characters is more than three. In our case, we should get the following:
'1 22 333 22 1'
Two arrays are given:
let arr1 = [1, 2, 3];
let arr2 = ['a', 'b', 'c'];
Merge these arrays into a new array as follows:
[1, 2, 'a', 'b', 'c', 3]