1function printOften(text, times){
2 var result = ""
3 for (var i = 0; i < times; i++) {
4 result = result + text
5 }
6 return result
7}
8 var r = printOften ("hello ", 2000)
9 console.log(r);
10 var r = printOften ("FABIO ", 43)
11 console.log(r);
12 var r = printOften ("wie geht's ", 15)
13 console.log(r);
14 var r = printOften ("ciao ", 77)
15