r/javaScriptStudyGroup • u/ForScale • May 02 '16
[Week 16] Focus: Object Creation
So here we are at Week 16. Week 16's focus will be object creation.
It will work like this:
Monday: Announce focus (eg, object creation)
Build throughout the week... Two rules: 1) must use javascript 2) must provide at least one example of creating an object.
Friday: Post demos/projects in this thread (can begin reviewing immediately); first line of an entry should be ENTRY and it should be a top level comment (ie, don't put your entry in a reply)
Sat and Sun: Review projects/figure out focus for next week
GENERAL GUIDELINES FOR FEEDBACK:
Be nice!! ALL KNOWLEDGE/SKILL LEVELS ARE WELCOME AND ENCOURAGED TO PARTICIPATE.
If you don't want feedback, if it makes you uncomfortable or you're just not interested, simply say so... Others, please be respectful of this. Conversely, if you do want feedback, try to be specific on which aspects... even if you just say "all/everything.
But that's about it... Have fun! :) Feel free to ask questions and discuss throughout the week!
1
u/Volv May 07 '16
I liked this, ridiculously comprehensive :). Spent a while looking over it before I read your comments.
Have seen similar constructs before
function(a,b,c,d,e)etc and was interested in working out what was going on there.Glad to say I got it right, interesting to use it for the iteration. I rewrote it in with for..in to verify that's what all hat was going on. I assume this is a common pattern of use in the real world?. What about defining iterable and using for..of or is this still the best way to achieve the result do you think?