I have two arrays.I want to concat both array values.But here it shows me the error,
NewsArr.contact is not a function
My Code
var GlobalNews = [];
var CommentArray = [];
var CommentArr = {};
CommentArr['Comment'] = comment;
CommentArray.push(CommentArr);
var NewsArr = {};
NewsArr['NewsNo'] = $("#newsNumber").val();
NewsArr['Desc'] = $("#desc").val();
//GlobalNews.push(NewsArr.concat(CommentArray)); // this also not working
GlobalNews= NewsArr.concat(CommentArray);