JavaScript Task Book Level 2.5
Задание 1
Given a certain line, for example, like this:
javascript'023m0df0dfg0'
Get an array of the positions of all zeros in this string.
Задание 2
A certain line is given:
javascript'abcdefg'
Remove every third character from this line. In our case, we should get the following:
javascript'abdeg'
Задание 3
Given some array, for example, like this:
javascript[1, 2, 3, 4, 5, 6]
Divide the sum of the elements in even positions by the sum of the elements in odd positions.