Function Call
Use this syntax to invoke a function and retrieve its result.
- Knot
- TypeScript
knot
func add(lhs: integer, rhs: integer) -> lhs + rhs;const result = add(123, 456);
knot
func add(lhs: integer, rhs: integer) -> lhs + rhs;const result = add(123, 456);
tsx
function add(lhs: integer, rhs: integer) {return lhs + rhs;}const result = add(123, 456);
tsx
function add(lhs: integer, rhs: integer) {return lhs + rhs;}const result = add(123, 456);