wiki/content/20201112095657-javascript_string_padstart_method.md

11 lines
180 B
Markdown

---
date: 20201112
id: 49a334dd-0103-46cc-abba-af84529fae70
title: JavaScript String padStart Method
---
# Syntax
``` javascript
console.log("x".padStart(5, "ab")); // ababx
```