> 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/.padstart.md).

# number.padStart

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

## Description

Treats the number as a **string** and returns a new string of length `num`, padded on the **left** with `val` (repeated as needed).

## Parameters

* **val** - padding string.
* **num** - total desired length.

## Usage

```javascript
log 7.padStart("0",3) // "007"
```
