Menu
Is there any posibility to put default parameters values in javascript?
in C you can use default parameters values like this:
myFunction(int a=2, int b=3)
if you don´t send any parameter to this function the value of a will be 2 and b will be 3, but if you pass any parameter to the function the variable will get the passed value.
Does anybody know if I can do this in javascript???
Thanks to everybody