The only difference is readability (and for some people it might also be easier to introduce).
Some people find 'one two'.split(' ') more readable than the JavaScript notation in an array.
If you are used to JSON, you think the second is more readable, since it is more clear what will happen. (And his tick is faster!)
Other languages ββare even built into the language. In Ruby, for example, you can write %w(one two) by creating an array with the strings one and two.
source share