tag:blogger.com,1999:blog-5839969784533137829.post3740054327406148457..comments2024-01-30T22:54:17.805-08:00Comments on Programming Concepts Help: JavaScript : Prototype Property and InheritanceZaheer Ahmedhttp://www.blogger.com/profile/02597314684496422985noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-5839969784533137829.post-77932445063144507292015-07-05T02:25:32.010-07:002015-07-05T02:25:32.010-07:00Thank you for this helpful post. A small typo: the...Thank you for this helpful post. A small typo: the last comment in the last example need to be ". . . will not throw error".Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5839969784533137829.post-43695181331825134942015-03-05T08:47:26.822-08:002015-03-05T08:47:26.822-08:00I know this article is a year old but thank you. ...I know this article is a year old but thank you. I was pulling my hair trying to understand prototype in Javascript. Your examples have clearly explained the concept. I have Java and C# background and couldn't wrap my mind around the prototype. Again, thank you! Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5839969784533137829.post-86882683647603267262014-01-10T05:02:53.018-08:002014-01-10T05:02:53.018-08:00plz read the section "How Prototype chain wor...plz read the section "How Prototype chain works?"<br /><br />" If you do not use prototype then it becomes a static and only available for current object. As we know object in JavaScript is a class and making a static function only available for that particular object and for other object of same type cannot access the same function while creating function with prototype is available in all objects."<br /><br />example is given above.Zaheer Ahmedhttps://www.blogger.com/profile/02597314684496422985noreply@blogger.comtag:blogger.com,1999:blog-5839969784533137829.post-89544886225108895362014-01-10T02:21:16.244-08:002014-01-10T02:21:16.244-08:00we can also add property to object directly like t...we can also add property to object directly like this<br />var obj={};<br />obj.name ="myObject"<br />so what is the difference using prototype property?mfkjhttps://www.blogger.com/profile/13129377997273862913noreply@blogger.com