wiki/content/20201112095711-javascript_string_padend_method.md

19 lines
390 B
Markdown
Raw Normal View History

2024-05-06 20:40:05 +00:00
---
2024-10-29 18:27:12 +00:00
date: 2020-11-12
2024-05-06 20:40:05 +00:00
id: 2ced27fe-8663-43d3-b3e7-f2b332599637
title: JavaScript String padEnd Method
---
# Syntax
``` javascript
console.log("x".padEnd(5, "ab")); // xabab
```
# See also
- [padStart](20201112095657-javascript_string_padstart_method)
- [JavaScript String Prototype
Methods](20201112095341-javascript_string_prototype_methods)
- [ES2017](20201026104538-es2017)