Function include
Function description
Function call
// Functions must be declared as global variables
sum = function(a, b) {
return a + b;
}include("other_file.js");
print(sum(1, 2));Last updated
Was this helpful?