Update ch2.md

This commit is contained in:
Dilip Valiya 2024-02-20 23:39:48 +05:30 committed by Kyle Simpson
parent 50ce656c38
commit 7e08b2130d

View File

@ -607,7 +607,7 @@ class Book extends Publication {
super( super(
bookDetails.title, bookDetails.title,
bookDetails.author, bookDetails.author,
bookDetails.publishedOn bookDetails.pubDate
); );
this.publisher = bookDetails.publisher; this.publisher = bookDetails.publisher;
this.ISBN = bookDetails.ISBN; this.ISBN = bookDetails.ISBN;
@ -643,7 +643,7 @@ Now consider using these child classes:
var YDKJS = new Book({ var YDKJS = new Book({
title: "You Don't Know JS", title: "You Don't Know JS",
author: "Kyle Simpson", author: "Kyle Simpson",
publishedOn: "June 2014", pubDate: "June 2014",
publisher: "O'Reilly", publisher: "O'Reilly",
ISBN: "123456-789" ISBN: "123456-789"
}); });