Suppose there is a number given:
let num = 969
The goal is to separate this number into an array of digits. The first two techniques fail, but the third one succeeds. What makes the third method different from the first two?
num + ''.split('') // '969'
num.toString() + ''.split('') // '969'
String(num).split('') // [ '9', '6', '9' ]