function multiply(a, b = 1) {
return a * b;
}
public void ExampleMethod(string optionalstr = "default string") {}
def multiply(a, b \\ 1) do
a * b
end
fn void test(int x = 10) { ... }
Languages with Default Parameters Pattern include JavaScript, C#, TypeScript, Elixir, C3, Static Typescript
Read more about Default Parameters Pattern on the web: 1.
HTML of this page generated by Features.ts