mit funktionen wörter printen javascript code example
Example: mit funktionen wörter printen javascript
function printOften(text, times){
var result = ""
for (var i = 0; i < times; i++) {
result = result + text
}
return result
}
var r = printOften ("hello ", 2000)
console.log(r);
var r = printOften ("FABIO ", 43)
console.log(r);
var r = printOften ("wie geht's ", 15)
console.log(r);
var r = printOften ("ciao ", 77)