Create _2_someDigit.js

This JavaScript code get 1 parameters as an array which values are 1 integer number and another one no meaning what.
The code returns n-th(what we chose in 1st parameter) digit from right to left.
Example: whichIsTheNum([3, 1451.78]) = 1