javascript convert a list to an array code example Example: number to array js const arrayOfDigits = numToSeparate.toString().split("");