Functions
Declare a function
Arrow functions (lambda)
var add = (a, b) => a + b
puts add(4, 5) // 9Closures & bindings
var count = 0
func increase() {
count++
}
func decrease() {
count--
}Last updated