List of questions
Related questions
Question 120 - Certified JavaScript Developer I discussion
Refer to code below:
Let productSKU = '8675309' ;
A developer has a requirement to generate SKU numbers that are always 19 characters lon, starting with 'sku', and padded with zeros.
Which statement assigns the values sku0000000008675309 ?
A.
productSKU = productSKU .padStart (19. '0').padstart('sku');
B.
productSKU = productSKU .padEnd (16. '0').padstart('sku');
C.
productSKU = productSKU .padEnd (16. '0').padstart(19, 'sku');
D.
productSKU = productSKU .padStart (16. '0').padstart(19, 'sku');
Your answer:
0 comments
Sorted by
Leave a comment first