Archive for June 22nd, 2005
Passing Arguments to a JavaScript Function
by Stephen on Jun.22, 2005, under Tech Tips
Have you ever been writing a function and realised you don’t want a fixed number of parameters then this page is for you
Passing Arguments to a JavaScript Function
It describes using the arguments property of the function you are writing and gives a simple example of how to use them.
I used this method to create a function similar to c’s printf function that allowed me to pass a string with placeholders in it and replace them with the parameters I passed.
-
Howdy. Welcome to Shutt World .co.uk!
Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed. See ya around!
Compliments?
Is it wrong that I wan't to allow through some my my spam comments? They all want to say things like good post and excellent blog, if I just stripped out the links that'd be ok right?
Recent Comments