var BaiduUsers = []; var UserArray = function(name, phone, id, id2) { this.name = name; this.phone = phone; this.id = id; this.id2 = id2; }; UserArray.add = function(name, phone, id, id2) { return new UserArray(name, phone, id, id2); }; BaiduUsers.pu…