JavaScript Taskbook Level 2.9

Задание 1

Given a certain number:

javascript123456

Find the sum of the pairs of digits of this number. In our case, we mean the following:

javascript12 + 34 + 56
Задание 2

Given an array of numbers:

javascript[1, 2, 3, 4, 5]

Print the elements of this array to the console in reverse order.