PI-Popovichenko / test2
.htmlfunction group(name, count, genre){ // Конструктор обєкту група this.name=name; this.count=count; this.genre=genre; this.getName = function(){ alert(this.name); } } function concert(venue, dateOf, group){ // Конструктор обєкту концерт this.venue=venue; this.dateOf=dateOf; this.group=group; this.address_concert = function (){ if ((this.venue=="") || (this.venue==undefined)) alert("Невідома адреса концерту гр. "+this.group.name); } this.date_concert = function(){ var newDate = new Date(); if ((newDate.getMonth()==this.dateOf.getMonth()) && (newDate.getDate()==(this.dateOf.getDate()-5))){ alert("Сьогодні останій день покупки квитка на концерт гр. "+this.group.name+" що відбудеться у м. "+this.venue); return "Останній день покупки квитка"; } if ((newDate.getMonth()==this.dateOf.getMonth()) && (newDate.getDate()==this.dateOf.getDate())){ alert("Сьогодні відбудеться концерт гр. "+this.group.name+" в м. "+this.venue); return "Сьогодні концерт"; } if ((newDate.getMonth()>=this.dateOf.getMonth()) && (newDate.getDate()>this.dateOf.getDate())){ alert("Концертна гр. "+this.group.name+" уже відбувся"); return "відбувся"; } if ((newDate.getMonth()