{"ScriptPreparationCode":"class PointC {\r\n\tconstructor(x, y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n }\r\n\r\n\tadd(value){\r\n\t\treturn this.x \u002B this.y \u002B value;\r\n }\r\n}\r\n\r\n//---------------------------------------\r\n\r\n\r\nfunction PointP(x, y){\r\n\tthis.x = x;\r\n\tthis.y = y;\r\n}\r\n\r\nPointP.prototype.add = function(value){\r\n return this.x \u002B this.y \u002B value;\r\n}\r\n\r\n//---------------------------------------\r\n\r\nfunction PointO(x, y){\r\n\treturn {\r\n \tx, \r\n \ty, \r\n \tadd: value =\u003E this.x \u002B this.y \u002B value\r\n } \r\n}\r\n\r\n//---------------------------------------\r\n\r\nvar PointS = {\r\n\tx: 10,\r\n \ty: 10\r\n}\r\n\r\nvar Add = (point, value) =\u003E point.x \u002B point.y \u002B value;\r\n\r\nvar p1C = new PointC(10, 10);\r\nvar p1P = new PointP(10, 10);\r\nvar p1O = new PointO(10, 10);\r\n\r\n\r\n\r\n\r\n","TestCases":[{"Name":"ES6 Class","Code":"var sum = p1C.add(10000);","IsDeferred":false},{"Name":"Function Prototype","Code":"var sum = p1P.add(10000);","IsDeferred":false},{"Name":"Object Literal","Code":"var sum = p1O.add(10000);\r\n","IsDeferred":false},{"Name":"Object 2","Code":"var sum = Add(PointS, 10000);","IsDeferred":false}]}