Put in order · JavaScript and TypeScript course · Module 2: Functions, Arrays and Objects
padStart() Method - Syntax
Arrange the elements of calling padStart() to pad an ID with zeros:
Items to put in order
- dinoId
- .padStart
- '0')
- (5,
Show the answer
Correct order:
- dinoId
- .padStart
- (5,
- '0')