{"ScriptPreparationCode":"window.cols = Array.from({length: 20}).map(() =\u003E ({ style: { width: \u0027123px\u0027 }}))","TestCases":[{"Name":"map-reduce","Code":"const sum = cols\r\n.map(c =\u003E parseFloat(c.style.width))\r\n.reduce((a, b) =\u003E a \u002B b);\r\nconsole.log(sum)","IsDeferred":false},{"Name":"loop of","Code":"let sum = 0\r\nfor (const c of cols) {\r\n sum \u002B= parseFloat(c.style.width)\r\n}\r\nconsole.log(sum)","IsDeferred":false},{"Name":"loop","Code":"let sum = 0\r\nfor (let i = 0, l = cols.length; i \u003C l; i\u002B\u002B) {\r\n sum \u002B= parseFloat(cols[i].style.width)\r\n}\r\nconsole.log(sum)","IsDeferred":false}]}