Retired

repeatIt (retired)

4,141 of 10,625AkyunaAkish

Description:

Create a function that takes a string and an integer (n).

The function should return a string that repeats the input string n number of times.

If anything other than a string is passed in you should return "Not a string"

Example

"Hi", 2 --> "HiHi"
1234, 5 --> "Not a string"
Fundamentals
Strings

More By Author:

Check out these other kata created by AkyunaAkish

Stats:

CreatedJun 12, 2015
Warriors Trained13005
Total Skips286
Total Code Submissions42861
Total Times Completed10625
JavaScript Completions4141
Python Completions3043
Ruby Completions1181
CoffeeScript Completions34
Haskell Completions368
Java Completions1823
Elixir Completions197
C# Completions350
Total Stars81
% of votes with a positive feedback rating92% of 1623
Total "Very Satisfied" Votes1393
Total "Somewhat Satisfied" Votes194
Total "Not Satisfied" Votes36
Ad
Contributors
  • AkyunaAkish Avatar
  • bkaes Avatar
  • cris Avatar
  • Unnamed Avatar
  • GiacomoSorbi Avatar
  • MarkPearlCoZa Avatar
  • AngusJGoldsmith Avatar
  • anter69 Avatar
  • kazk Avatar
  • Voile Avatar
  • ejini战神 Avatar
Ad