Without a return value
Functions
With a return value
Without a return value
Multiple return values
Without parameters
Array of parameters
Out parameters
In-out parameters
Modifying parameters
Optional parameter values
External parameter names
Recursion
def
add
_3
_
and_print
(value)
puts
value +
3
end
add
_3
_
and_print
(
5
)
# prints 8
Languages
Python
C
C++
Java
C#
JavaScript
R
Rust
Golang
Delphi
PHP
Swift
Kotlin
Lua
TypeScript
Clojure
Bash
Objective-C