Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add default parameters to function declatation #9

Open
eWert-Online opened this issue Jul 9, 2023 · 0 comments
Open

Add default parameters to function declatation #9

eWert-Online opened this issue Jul 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@eWert-Online
Copy link
Member

let add = fn (a, b=10) -> {
  a + b
};

add(1, 3); // 4
add(1); // 11
@eWert-Online eWert-Online added the enhancement New feature or request label Jul 9, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant