0
   

Why would you use Object.prototype.newMethod?

 
 
bobme
 
Reply Wed 11 Mar, 2015 03:41 am
I am new to OOJS and understand about creating objects and amending it's prototype but why would you want/need to do this? Why would you not just define the method in the original constructor? Could anyone give an example case as to when this might be useful?
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Question • Score: 0 • Views: 568 • Replies: 0
No top replies

 
 

 
  1. Forums
  2. » Why would you use Object.prototype.newMethod?
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 05/01/2024 at 11:15:56