{"ScriptPreparationCode":"const data = new Set\r\nfor (let i = 0; i \u003C 1000000; i\u002B\u002B) {\r\n data.add(i)\r\n}\r\nwindow.data = data","TestCases":[{"Name":"Set.forEach","Code":"let sum = 0\r\nwindow.data.forEach((v) =\u003E {\r\n\tsum \u002B= v\r\n})\r\nconsole.log(sum)","IsDeferred":false},{"Name":"for x of Set","Code":"let sum = 0\r\nfor (const v of window.data) {\r\n sum \u002B= v\r\n}\r\nconsole.log(sum)","IsDeferred":false}]}