Closed giann closed 2 years ago
| optional default value is always null fun myFunction(str name = "Joe", num? age) > str { if (age != null) { return "{name} is {age}"; } return "{name} is ageless"; } | valid calls myFunction(); myFunction("John"); myFunction(age: 12);