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