Let's say we have a number:
let num = 969
I'm trying to split this number into an array of digits. The first two methods do not work, but the third does. What is the difference?
num + ''.split('') // '969'
num.toString() + ''.split('') // '969'
String(num).split('') // [ '9', '6', '9' ]