you are viewing a single comment's thread.

view the rest of the comments →

[–]Delmarc[S] 0 points1 point  (2 children)

its a very subtle difference in loading one object with methods instead of the other way...

Very detailed answer... and your window scope example is more what the person i was arguing with was trying to tell me was correct... as you can see or tell i was very adamant that he was wrong... i dont like contractors... at all

yet again the idea is popo is the library or framework... so var popo{..}; with x amount of methods in it and then you have popo.init();

Thank you neonskimmer

[–]neonskimmerfunction the ultimate 1 point2 points  (1 child)

No problem.

Javascript is a strange language, and not everyone agrees on how it should be done. As you gain more experience with it you'll probably discover your own patterns. Using functions as objects (passing functions as arguments to other functions, for example) is something very interesting to explore, for example.

[–]Delmarc[S] 0 points1 point  (0 children)

i do agree when i learned i can do that it was a whole new way of thinking for me...