{"ScriptPreparationCode":"window.prefix = \u0022%%CHAT_TRANSCRIPT%%\u0022;\r\nconst possible = \u0022ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789\u0022;\r\n\r\nfunction getRandomInt(max) {\r\n return Math.floor(Math.random() * max);\r\n}\r\n\r\nfunction makeRandomString(len) {\r\n var text = \u0022\u0022;\r\n for( var i=0; i \u003C len; i\u002B\u002B ) {\r\n text \u002B= possible.charAt(getRandomInt(possible.length));\r\n }\r\n return text;\r\n}\r\n\r\nwindow.allStrings = [];\r\nfor (let i = 0; i \u003C 1000; i\u002B\u002B) {\r\n\tallStrings.push(\u0022%%CHAT_TRANSCRIPT%%\\n\\n\u0022 \u002B makeRandomString(1000));\r\n\tallStrings.push(makeRandomString(1000));\r\n}","TestCases":[{"Name":"JS startsWith","Code":"window.allStrings.forEach(s =\u003E { \r\n s.startsWith(window.prefix);\r\n})","IsDeferred":false},{"Name":"JS includes","Code":"window.allStrings.forEach(s =\u003E { \r\n s.includes(window.prefix);\r\n})","IsDeferred":false},{"Name":"JS substring","Code":"window.allStrings.forEach(s =\u003E { \r\n s.substring(0, window.prefix.length) === window.prefix;\r\n})","IsDeferred":false}]}