String Multiplier

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:




©2017 Graham Mitchell