What goes in the blank?
// always two digits: "7" -> "07" const mm = String(m).____(2, '0');
Answer: padStart
padStart() pads the front until the string reaches the given length.
Play Problem Solving ▸
// always two digits: "7" -> "07" const mm = String(m).____(2, '0');
Answer: padStart