{"ScriptPreparationCode":null,"TestCases":[{"Name":"for loop","Code":"const code = \u0060\r\n\u003Cstyle\u003E\r\n :component(DropDown) {\r\n .rounded {\r\n border-radius: 0.5rem;\r\n }\r\n }\r\n\r\n /* .rounded {\r\n border-radius: 0.5rem;\r\n } */\r\n\u003C/style\u003E\r\n\u0060;\r\n\r\n// Array to store positions of opening and closing braces\r\nconst positions = [];\r\n\r\nfor (let i = 0; i \u003C code.length; i\u002B\u002B) {\r\n if (code[i] === \u0027{\u0027 || code[i] === \u0027}\u0027) {\r\n positions.push({\r\n char: code[i],\r\n position: i\r\n });\r\n }\r\n}","IsDeferred":false},{"Name":"forin loop","Code":"const code = \u0060\r\n\u003Cstyle\u003E\r\n :component(DropDown) {\r\n .rounded {\r\n border-radius: 0.5rem;\r\n }\r\n }\r\n\r\n /* .rounded {\r\n border-radius: 0.5rem;\r\n } */\r\n\u003C/style\u003E\r\n\u0060;\r\n\r\n// Array to store positions of opening and closing braces\r\nconst positions = [];\r\n\r\nlet index = 0;\r\nfor (const key of code) {\r\n index\u002B\u002B;\r\n if (key === \u0027{\u0027 || key === \u0027}\u0027) {\r\n positions.push({ char: key, position: index });\r\n }\r\n}","IsDeferred":false}]}