wiki/content/20201112095657-javascript_string_padstart_method.md

12 lines
182 B
Markdown
Raw Permalink Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-30 17:34:11 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: 49a334dd-0103-46cc-abba-af84529fae70
title: JavaScript String padStart Method
---
# Syntax
``` javascript
console.log("x".padStart(5, "ab")); // ababx
```