js pick element from array and create with new array with it code example Example: number to array js const arrayOfDigits = numToSeparate.toString().split("");