Functions

A Procedure that takes in same data and returns some data.

Fig 1:


function add(x: int, y: int) -> int {
    return x + y;
}

print(add(10, 5));

Output:

15