{"ScriptPreparationCode":null,"TestCases":[{"Name":"create closure","Code":"let num = Math.random();\r\nlet elem = {\r\n click: (elem) =\u003E num * 2\r\n};","IsDeferred":false},{"Name":"create object lookup","Code":"function reusable_click_handler(elem) {\r\n return elem.num * 2;\r\n}\r\n\r\nlet num = Math.random();\r\nlet elem = {\r\n num,\r\n click: reusable_click_handler\r\n};","IsDeferred":false},{"Name":"click closure","Code":"let num = Math.random();\r\nlet elem = {\r\n click: (elem) =\u003E num * 2\r\n};\r\nelem.click(elem);","IsDeferred":false},{"Name":"click object lookup","Code":"function reusable_click_handler(elem) {\r\n return elem.num * 2;\r\n}\r\n\r\nlet num = Math.random();\r\nlet elem = {\r\n num,\r\n click: reusable_click_handler\r\n};\r\nelem.click(elem)","IsDeferred":false}]}