{"ScriptPreparationCode":"function generateRandomString(length) {\r\n const randomValues = new Uint8Array(length);\r\n window.crypto.getRandomValues(randomValues);\r\n const randomChars = Array.from(randomValues, (value) =\u003E String.fromCharCode(value));\r\n return randomChars.join(\u0027\u0027);\r\n}\r\n\r\nconst text = generateRandomString(1000);\r\n\r\nfunction extractNumbers(text) {\r\n\tif (typeof text !== \u0027string\u0027) {\r\n\t\tthrow new Error(\u0027Invalid input: Must provide a valid string\u0027)\r\n\t}\r\n\r\n\tconst numbers = text.match(/\\d\u002B/g)\r\n\r\n\r\n\tconst result = []\r\n\tfor (let i = 0; i \u003C numbers.length; i\u002B\u002B) {\r\n\t\tresult.push(\u002Bnumbers[i])\r\n\t}\r\n\r\n\treturn result\r\n}","TestCases":[{"Name":"match","Code":"const numbers = text.match(/\\d\u002B/g)\r\n\r\nconsole.log(numbers)","IsDeferred":false},{"Name":"split","Code":"const numbers = text.split(/\\d\u002B/g)\r\n\r\nconsole.log(numbers)","IsDeferred":false}]}