String.prototype.padStartbeginner'5'.padStart(3, '0') // β '005'
'hi'.padStart(5, '-') // β '---hi'
'hello'.padStart(3) // β 'hello'Use padStart() to pad the beginning of a string with a fill character until it reaches the target length.
If str.length >= targetLength, .padStart() returns str unchanged.
Challenge: Implement padToFive(str) that pads to length 5.
padToFive('hi') // β ' hi'
padToFive('hello!') // β 'hello!' (unchanged)