Timeline for Call method of object within function
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 11, 2017 at 0:28 | comment | added | Mirko Vukušić |
@ClydeLobo I'm not questioning correct/best answer on this. It's definitely yours. I just wanted to make sure he understands where he was wrong. Because if he just copied your code into the test he might think only issue was to return MyObject instead of MyObject.objMethod and he would have missed all the other stuff.
|
|
| Jan 10, 2017 at 10:52 | comment | added | Clyde Lobo | @MirkoVukušić That was the actual problem statement. One had to fix the errors in it. | |
| Jan 9, 2017 at 15:13 | vote | accept | Community Bot | ||
| Jan 9, 2017 at 12:17 | comment | added | Mirko Vukušić |
This is correct answer to pass the test. However, please note that your initial problem was a lot of typos in your code. You would probably come to this conclusion yourself if you were able to run your own code. In example: 1) you were missisng a comma after objProperty: "string", 2) you called myObject.Objmethod(); and object was MyObject and method was objMethod, etc.
|
|
| Jan 9, 2017 at 12:09 | comment | added | user6002037 | yeah, that was it! ok, guess i misunderstood what they were looking for a bit | |
| Jan 9, 2017 at 12:07 | history | answered | Clyde Lobo | CC BY-SA 3.0 |