Skip to main content

Command Palette

Search for a command to run...

- Body -

Of a unit of code

Updated
1 min read
- Body -

Instructions set to be executed in a unit of code.

It can be as complex as required, calling multiple functions, modules, etc.

function complexFunction(): number {
  /**
   * Beginning of the unit of code's body
   */
  const firstReturnValue = calToAnotherFunction();
  const preResult = module1.externalFunction(firstReturnValue);
  const result = preResult.calculate();

  return result;
  /**
   * End of the unit of code's body
   */
}

🇨🇴 Versión en Español