Functions
Squirrel uses multitype functions, which means they can return any type of value. Functions are declared with function name round brackets arguments curly brackets code < function n(n1, n2, n3) { print(n1 + "+" + n2 + "+" + n3 + "=" + (n1+n2+n3)); } >. This is the simplest way to define a function, although there are many other ways. Functions are called by using name curly brackets arguments
< n(2, 3, 5); >.
< n(2, 3, 5); >.