Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#9 Printing Steps #12

Closed
somekindofwallflower opened this issue Jun 14, 2022 · 0 comments · Fixed by #39
Closed

#9 Printing Steps #12

somekindofwallflower opened this issue Jun 14, 2022 · 0 comments · Fixed by #39
Assignees
Labels
enhancement New feature or request

Comments

@somekindofwallflower
Copy link
Owner

somekindofwallflower commented Jun 14, 2022

Description
Write a function that accepts a positive number N.
The function should console log a step shape
with N levels using the # character. Make sure the
step has spaces on the right hand side!

Examples

  • steps(2)
    '# '
    '##'
  • steps(3)
    '# '
    '## '
    '###'
  • steps(4)
    '# '
    '## '
    '### '
    '####'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
1 participant