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:

  1. dinoId
  2. .padStart
  3. (5,
  4. '0')