JavaScript Task Book Level 2.4

Задание 1

Given a string of letters and numbers, get the position of the first digit in that string.

Задание 2

Given an object with keys and values, write the object's keys into the first array and the object's values ​​into the second.

Задание 3

Given a number, output to the console the number of even digits in this number.

Задание 4

A certain line is given:

javascript'abcde'

Convert all odd letters of this line to uppercase. In our case, we should get the following:

javascript'AbCdE'
Задание 5

There is a certain line with the words:

javascript'aaa bbb ccc'

Capitalize the first character of each word in this line. In our case, it should look like this:

javascript'Aaa Bbb Ccc'