I want to create an array by extracting the dates of some other array and then comma separate the values into a string.
array.push({date:created_at,username:user});
for (i in array) {
var combined=new array();
combined = array[i].date;
}
console.log(combined);
I am new to javascript and hard to follow in arrays.Thanks !! Can anyone also recommend me a good book for javascript?
Try this
One of the more popular books is “Javascript The Good Parts” by Douglas Crockford
http://www.amazon.com/JavaScript-Good-Parts-Douglas-Crockford/dp/0596517742