.padEnd(num,val)

Description

Padend returns the original string with the start padded out using the input values

Parameters

Padend needs the number of characters to pad the input out to and the string to use to pad the input with

Usage On Strings

num = "1"

log num.padEnd(10,"0")
// 1000000000

Last updated