Interview question of the issue #282 of rendezvous with cassidoo.
Given a number, sum every second digit in that number.
Example:
> sumEveryOther(548915381)
> 26 // 4+9+5+8
> sumEveryOther(10)
> 0
> sumEveryOther(1010.11)
> 1 // 0+0+1
Just pnpm i
to install all dependencies and then pnpm t
to run the tests!