← Back to challenges

InnoaaaaaKod

JavaScriptHardformattingstringsloops

Instructions

Write a function that takes an integer and returns a string with the given number of "a"s in InnoKod.

Examples

howManyTimes(5) ➞ "InnoaaaaaKod"

howManyTimes(0) ➞ "InnoKod"

howManyTimes(12) ➞ "InnoaaaaaaaaaaaaKod"

Notes

  • The string must start with "Inno" and end with "Kod".
  • You'll only be given integers as test input.
javascript
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Date Format