padded_string.slice(0, 2); | ^^^^^ method not found in `String code example
Example: js number padding to number of characters
var n = 123
String("00000" + n).slice(-5); // returns 00123
("00000" + n).slice(-5); // returns 00123
(" " + n).slice(-5); // returns " 123" (with two spaces)