📅  最后修改于: 2022-03-11 15:04:26.110000             🧑  作者: Mango
function repeatStringNumTimes(str, num) {
if (num < 1) {
return "";
} else {
return str + repeatStringNumTimes(str, num - 1);
}
}