string.padEnd
const str1 = '๊ณ ์์ด ๋๋ฌด ๊ท์ฌ์์ด์ด';
str1.padEnd(16, '๐ฝ'); // "๊ณ ์์ด ๋๋ฌด ๊ท์ฌ์์ด์ด๐ฝ๐ฝ"
const str2 = "๊ณ ์์ด";
str2.padEnd(6); // "๊ณ ์์ด "Syntax
str.padEnd(targetLength [, padString])Parameters
Return value
Examples
Browser compatibility
Last updated