Bookmark Topic Watch Topic
  • New Topic

Benefits of OO JavaScript

 
Prabhu Venkatachalam
Ranch Hand
Posts: 502
Java jQuery Spring
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi

I have a questions

1. what is benefit of OO javascript than normal procedure based javascript? Is it something with enhanced functions or just OO based?

Thanks
Prabhu
 
Stoyan Stefanov
author
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Report post to moderator
well, one simple thing you can do to improve the procedural style is two put all your usual functions behind a namespace (example in this post) to help keep the global namespace clean and avoid naming collisions.

Other than that the benefits of OO in general apply to JS as well.
 
    Bookmark Topic Watch Topic
  • New Topic