BS Functions

Learn how to define reusable logic with `kaj` and `ferotDao` in BornomalaScript.

Functions

Functions let you group reusable logic into a named block.

Instead of writing the same code many times, you define it once and call it whenever you need it.

In BornomalaScript, functions are created with kaj and return values with ferotDao.

Why Functions Matter

Functions help you:

  • avoid repeating code
  • organize programs into smaller parts
  • make code easier to read
  • reuse logic in different places

That makes them one of the most important tools in programming.

What You Will Learn

This section introduces three important function topics:

  • Built-In Functions
  • Custom Functions
  • Recursive Functions

Each lesson shows a different way functions are used in BornomalaScript.

Learning Path

Start with built-in functions, then move to custom functions, and finish with recursion.

Quick Preview

  • Built-in functions are provided by the language
  • Custom functions are written by you
  • Recursive functions call themselves

Once you understand these three ideas, you can write cleaner and more powerful BornomalaScript code.