> For the complete documentation index, see [llms.txt](https://osl.mistium.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://osl.mistium.com/legacy-osl-originos/prototype-helpers/.prepend.md).

# number.prepend

> ⚠️ **Not a number method.** `.prepend()` works only on strings. See [strings/.prepend.md](https://github.com/Mistium/OSL-Docs/blob/main/methods/strings/.prepend.md).

## Description

Casts the current **number** to a string, prepends `val`, and returns the combined **string**.

## Parameters

* **val** - value to place in front (converted to string).

## Usage

```javascript
log 99.prepend("ID-") // "ID-99"
```
