# BBLANG

### Overview

Backbench currently supports BBLANG **v1.0.0**.

As backench is a [FAAS](https://en.wikipedia.org/wiki/Function_as_a_service) with integrated [APIGATEWAY](https://en.wikipedia.org/wiki/API_management). BBLANG functions (public ones) can be mapped directly with API endpoints.&#x20;

Functions can be of two types - Public, Private. Difference exist here that public are accessible to APIs while other is not.

```javascript
//For public function `foo:bar` accesible to backbench endpoints 
//and other functions
PUBLIC_FUNCTION_NAME:FUNCTION_NAME()->{
    //do things here
}

//For private function `bar`, accesible to other functions only
FUNCTION_NAME()->{
    //do things here
}
```

Standard libaries shipped with BBLANG <https://bblang.org/stdlib.html>.

To learn more about BBLANG visit <https://bblang.org/>.&#x20;

### Example

Create a **module** on backbench and paste the code.

```javascript
hello:world()->{
    "Halo by JLO"
}
```

Now, go to **endpoints** section, click on plus button - choose relative URI for API and then in dropdown select `hello:world.`

Open curl and browser, hit on the the API. You will see a "Halo".
