I'm playing around with different design patterns in Javascript. This factory has got me confused -
I am playing with different JS design patterns, and I am trying to modify some samples there. An example of an Exhaor factory was seen, in which there were many nested attempts / catching statements that were nested inside each
try {...} catch (e) {try {...} hold (e) {}}
I thought I was a I can do self-acting work. Although it seems that I have not got this as how it should work. Does anyone have any advice?
Example:
[Update] :
Close the case.
Try to loop in:
for (var i = 0, l = instances.length; i & lt; l; i ++) {try {var obj = example [i] .getInstance (); Examples of return [i]; } Hold (e) {}}
Comments
Post a Comment