mirror of
https://github.com/getify/You-Dont-Know-JS.git
synced 2025-12-08 18:36:06 +00:00
Update ch2.md
This commit is contained in:
parent
50ce656c38
commit
7e08b2130d
@ -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"
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user