
v0.39: Grademe is back in your terminal.
Try the CLI betaRebuild left-pad: copy a string into a buffer, padded on the left to a minimum width.
March 2016. A developer gets into a naming fight with npm, and in protest he unpublishes all his tiny packages. One of them, left-pad, is eleven lines long. Within minutes Babel, React and thousands of builds around the world fall over at once, every one of them missing the same eleven lines. You are on call the night the internet forgot how to pad a string. Rebuild them.
left_pad(dst, "1", 5, '0')Expected result
[00001]For your own tracking. Tests grade your code.
left_pad(dst, "foo", 5, ' ')Expected result
[ foo]left_pad(dst, "hello", 3, 'x')Expected result
[hello]Expected files
leftpad.cAllowed functions
None. Write every helper yourself.
