Click to See Complete Forum and Search --> : Does javascript offer updatable parameters


cupboy
09-03-2008, 04:03 PM
When calling a function can a parameter be updated? I tried adding the word ref in front, but Javascript didnt like that idea. I also tried an ampersand. Is it just not possible to update a parameter in a function with Javascript?

JPnyc
09-03-2008, 09:29 PM
if the parameteris being passed as an argument yes, or if it's a global variable, you can actually set the value in the function call as well.