p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional JavaScript for Web Developers 3rd edition (http://p2p.wrox.com/forumdisplay.php?f=669)
-   -   Is there an error in FIGURE 6-5, Page204 (http://p2p.wrox.com/showthread.php?t=99418)

jayzhen521 March 27th, 2017 04:02 AM

Is there an error in FIGURE 6-5, Page204
In Figure 6-5, instance cannot find constuctor--SubType because its prototype doesn't have a pointer to SubType.

The sentence "The first way is to use the instanceof operator, which returns true whenever an instance is used with a constructor that appears in its prototype chain" from the same page means every Prototype has a constructor pointer point to Constructor.

Did the figure 6-5 lose a constructor pointer pointing to SubType?[:confused:]

All times are GMT -4. The time now is 05:33 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.