diff --git a/snippets/functions/function-context/context_callFunction.js b/snippets/functions/function-context/context_callFunction.js new file mode 100644 index 0000000..f22f6d4 --- /dev/null +++ b/snippets/functions/function-context/context_callFunction.js @@ -0,0 +1,14 @@ +exports = async function(number1, number2){ + + // To call other named functions: + var result = context.functions.execute("sum", number1, number2); + + return result; +}; + +// This examples calls a function named "sum" that looks like this: +/* + exports = async function(number1, number2) { + return number1 + number2 + }; +*/ \ No newline at end of file