{"ScriptPreparationCode":"var sentence = \u0022Lorem Ipsum is simply dummy text of the printing and typesetting industry.\u0022;\r\nvar wordList = sentence.split(\u0027 \u0027);\r\n\r\nvar longText = \u0022Lorem Ipsum is simply dummy text of the printing and typesetting industry.\u0022\r\n\r\nfor (let i = 0; i \u003C 10; i \u002B= 1) {\r\n longText = longText \u002B \u0022 \u0022 \u002B longText\r\n} \r\n","TestCases":[{"Name":"replace with for ","Code":"for (let i = 0; i \u003C wordList.length; i \u002B= 1) {\r\n var re = new RegExp(\u0022(\u0022 \u002B wordList[i] \u002B \u0022)\u0022, \u0022gi\u0022);\r\n\r\n longText = longText.replace(\r\n re,\r\n \u0027\u003Cspan\u003E$1\u003C/span\u003E\u0027\r\n );\r\n}","IsDeferred":false},{"Name":"replace without for","Code":"var re = new RegExp(\u0022(\u0022 \u002B wordList.join(\u0027|\u0027) \u002B \u0022)\u0022, \u0022gi\u0022);\r\nlongText = longText.replace(\r\n re,\r\n \u0027\u003Cspan\u003E$1\u003C/span\u003E\u0027\r\n);","IsDeferred":false}]}