Advertisement
divanov94

Untitled

Oct 20th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if(this.clients.find(c=>c.clientName===clientName)!==undefined){
  2.                 throw new Error ('This client has already ordered this review.');
  3.             }else {
  4.                 this.clients.push({clientName,orderDescription});
  5.                 return `${clientName} has ordered a review for a ${this.book.name}`
  6.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement