array string converting to array in es6 code example Example: number to array js const arrayOfDigits = numToSeparate.toString().split("");