What is the result of the following code?
function repeat(text = "hello", times = 1) {
return text.repeat(times);
}
console.log(repeat(undefined, 3));
What is the result of the following code?
function repeat(text = "hello", times = 1) {
return text.repeat(times);
}
console.log(repeat(undefined, 3));