Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Then you are thinking about javascript wrong; if you have issues with overloads and scope, you should probably have a different method name as it sounds like it's doing another job Commented Jun 1, 2012 at 19:04
  • @joshcomley - Overloads and scope require code to handle. I am merely trying to make sure the code that I use is as efficient as possible. Handling scopes with workarounds is fine, but I prefer to at least try to use best practice methods. Commented Jun 1, 2012 at 19:06
  • 3
    possible duplicate of Function overloading in Javascript - Best practices Commented Apr 28, 2014 at 14:18