I'm perplexed by the discrepancy in results between these two scenarios:
var arr1=[a,b,c,d,e];
console.log(arr1[0].length); /* undefined */
var str='a b c d e';
var arr2=str.split(' ');
console.log(arr2[0].length); /* 1 */
Can someone explain the difference to me?