1. String.prototype.padEnd()
const str1 = 'Im hungry.'; console.log(str1.padEnd(15, '.')); // > "Im hungry......" // 결과를 보면 15만큼의 길이만큼 .가 추가되어 결과를 반환