> Note 1: You can use bracket handlers and functions for default arguments. But variables are not allowed. Currently, they areseen as strings, but may produce parse exception in the future version.
Note 2: Once a parameter have a default argument, the parameters after it also require a default argument.
—— From [friendlyhj](https://github.com/friendlyhj)
As yet, there is no corresponding syntax parsing for this function, and it is hoped that it will be added in the new version.
foo(1); // print 6 [1 + 2 (default) + 3 (default)] foo(1, 3); // print 7 [1 + 3 + 3 (default)] foo(1, 1, 4); // print 6 [1 + 1 + 4]