Menu
How can i do this in a JS function:
PHP:
[code=php]
function myfunk ($var1 = ‘value’) {
}
in the function above if myfunk() is called without passing a value the $var1 gets = to “value”… perfect
how do i do that in JS?
i need my JS function to handle being run with and without a passing variable?
i know it can be done, but im not searching the right words in google cause i cant find it
Thanks
-aPeg