{"ScriptPreparationCode":null,"TestCases":[{"Name":"extend and create","Code":"class Vehicle {\r\n constructor(name){\r\n this.name = name;\r\n }\r\n}\r\n\r\nclass Ev extends Vehicle {\r\n constructor(name, charge){\r\n super(name);\r\n this.charge = charge;\r\n }\r\n}\r\n\r\nconst car = new Ev(\u0022leaf\u0022,90);","IsDeferred":false},{"Name":"object.assign","Code":"class Vehicle {\r\n constructor(name){\r\n this.name = name;\r\n }\r\n}\r\n\r\nconst car = Object.assign(new Vehicle(\u0022leaf\u0022),{\r\n charge: 90\r\n})","IsDeferred":false}]}