function with default variables?

I want to make a function with two variables to input, and i want the second to have a default value in case i don’t put anything in.

like…

function DoSomething(valueA, valueB = 25){
   Do Stuff;
}

DoSomething(8); <-- valueB is 25 here
DoSomething(5,15); <-- valueB is 15 here

Allright, that seems right, what is the problem/question?

This problem is a common one and has a common solution in most languages with function overload:

function DoSomething(valueA){ 
   DoSomething( valueA, 25 ); 
} 
function DoSomething(valueA, valueB ){ 
   Do Stuff; 
}