var _={};
_.bullets='1,2,3';
console.log(typeof bullets);
string
console.log(_.bullets);
var bullets=_.bullets.split(',');
console.log(bullets); //REF 1
["1", "2", "3"]
console.log(typeof bullets);
object
Why is it not array? I can't figure out what I am doing wrong here
UPDATE
console.log([1,2,3]);
console.log(bullets); //REF 1
[1, 2, 3]
["1", "2", "3"]
What is the difference (one is a string one is a number?)