Functions

Declare variables and reusable functions, and call them with arguments.

function
// Define a reusable function
function foo(): void {}
View on MDN ↗
return
// Return a value from a function
return;