March 17, 2006

Assigning Defaults in JavaScript

Dave ran across this article about assigning function arguments default values. It’s a pretty neat idea. The script they came up with is not bad.

Dave, not being one to leave well enough alone, wanted to “improve” on this idea by creating a function to simplify the assigning of these defaults.

Post Info

Tagged As Coding, Javascript, Reference, Tip

Comments are Open (0)

Posted at 10:33 AM

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu