View Single Post
  #1 (permalink)  
Old March 27th, 2017, 04:02 AM
jayzhen521 jayzhen521 is offline
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Mar 2017
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy 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?
Reply With Quote