Answers for "javascript to add leading zeros to zip code"

1

add leading zeros javascript

const str1 = '5';
console.log(str1.padStart(2, '0')); // expected output: "05"
Posted by: Guest on August-12-2021

Code answers related to "javascript to add leading zeros to zip code"

Code answers related to "Javascript"

Browse Popular Code Answers by Language