← Back to challenges

Burrrrrrrp

JavaScriptHardmathstrings

Instructions

Create a function that returns the string "Burp" with the amount of "r's" determined by the input parameters of the function.

Examples

longBurp(3) ➞ "Burrrp"

longBurp(5) ➞ "Burrrrrp"

longBurp(9) ➞ "Burrrrrrrrrp"

Notes

  • Expect num to always be >= 1.
  • Remember to use a capital "B".
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Spaces Between Each Character