Question: `var string = "3y4jd424jfm`

Ideally, I'd want it to be `["3","y","4","j","d","4","24","j","f","m"]`

but when I split: `string.split("")`, the `2` and the `4` in `24` are separated. How can I account for double digits?

Edit: Here is the question I was trying to solve from a coding practice:

*Using the JavaScript language, have the function EvenPairs(str) take the str parameter being passed and determine if a pair of adjacent even numbers exists anywhere in the string. If a pair exists, return the string true, otherwise return false. For example: if str is "f178svg3k19k46" then there are two even numbers at the end of the string, "46" so your program should return the string true. Another example: if str is "7r5gg812" then the pair is "812" (8 and 12) so your program should return the string true.*

Answer: 
You could take a staged approach by

* getting only numbers of the string in an array
* filer by length of the string,
* check if two of the digits are even

```js
function even(n) {
    return !(n % 2);
}

function checkEvenPair(string) {
    return string
        .match(/\d+/g)
        .filter(s => s.length > 1)
        .some(s => 
            [...s].some((c => v => even(v) && !--c)(2))
        );
}

console.log(checkEvenPair('2f35fq1p97y931'));   // false
console.log(checkEvenPair('3y4jd424jfm'));      // true  4  2
console.log(checkEvenPair('f178svg3k19k46'));   // true  4  6
console.log(checkEvenPair('7r5gg812'));         // true  8 12
console.log(checkEvenPair('2f35fq1p97y92321')); // true  (9)2 32
```

A regular expression solution by taking only even numbers for matching.

```js
function checkEvenPair(string) {
    return /[02468]\d*[02468]/.test(string);
}

console.log(checkEvenPair('2f35fq1p97y931'));   // false
console.log(checkEvenPair('3y4jd424jfm'));      // true
console.log(checkEvenPair('f178svg3k19k46'));   // true
console.log(checkEvenPair('7r5gg812'));         // true
console.log(checkEvenPair('2f35fq1p97y92321')); // true
```
Use regex for number extract then split for char as following:

```
var regex = /\d+/g;
var string = "3y4jd424jfm";
var numbers = string.match(regex); 

var chars = string.replace(/\d+/g, "").split("");

var parts = numbers.concat(chars);

console.log(parts);

```