Timeline for answer to Issue with javascript inheritance using function prototype by Rajagopal 웃
Current License: CC BY-SA 3.0
Post Revisions
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 19, 2012 at 11:33 | vote | accept | BalaKrishnan웃 | ||
| Jun 14, 2012 at 11:03 | vote | accept | BalaKrishnan웃 | ||
| Jun 14, 2012 at 11:04 | |||||
| Jun 14, 2012 at 11:01 | comment | added | BalaKrishnan웃 | take a look at this developer.mozilla.org/en/JavaScript/Guide/… | |
| Jun 11, 2012 at 13:52 | comment | added | Esailija |
There is no inheritance though, you are just defining everything on the object itself. The line MyGarage.prototype = new MyCar(); Is superfluous.
|
|
| Jun 11, 2012 at 13:26 | vote | accept | BalaKrishnan웃 | ||
| Jun 14, 2012 at 11:02 | |||||
| Jun 11, 2012 at 13:25 | history | answered | Rajagopal 웃 | CC BY-SA 3.0 |