Write a function called multiplyString()
that will receive a string and a number and return a string consisting of the given number of copies concatenated.
For example, if "cat" and 4 are passed in, your function should return the string "catcatcatcat".
Examples:
multiplyString("cat", 4)
returns "catcatcatcat"
multiplyString("cat", 1)
returns "cat"
multiplyString("x", 7)
returns "xxxxxxx"
multiplyString("schwifty", 0)
returns ""
©2017 Graham Mitchell