问答题1057/1473实现一个函数, 可以间隔输出

1function createRepeat(fn, repeat, interval) {} 2 3const fn = createRepeat(console.log, 3, 4); 4 5fn('helloWorld'); // 每4秒输出一次helloWorld, 输出3次
难度:
2023-05-28 创建

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!