javascript, optional parameters
I was searching about how to define optional parameters on javascript functions, but i discover that it’s not necesary to declare it *optional* the javascript behavior is:
function (var1, var2, var3)
if i call my function like this: function (var1)
or like this: function (var1, var2)
it works!!!
so, only need to do some verifications like:
if(var1===”undefined”)
{
var1 = “something”;
}
;) Great!!!!!!