From c5a0117d820f35d6f32c08586eaabe9ef9f0af3c Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Thu, 14 May 2026 16:02:10 +0100 Subject: [PATCH] Ban string.repeat --- Sprint-3/2-practice-tdd/repeat-str.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sprint-3/2-practice-tdd/repeat-str.js b/Sprint-3/2-practice-tdd/repeat-str.js index 3838c7b003..2af0a2cea7 100644 --- a/Sprint-3/2-practice-tdd/repeat-str.js +++ b/Sprint-3/2-practice-tdd/repeat-str.js @@ -1,4 +1,6 @@ function repeatStr() { + // Your implementation of this function must *not* call String.prototype.repeat (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat). + // The goal is to re-implement that function, not to use it. return "hellohellohello"; }