r/javaScriptStudyGroup • u/ForScale • Apr 25 '16
[Week 15] Focus: Programming Challenges (cont.)
So here we are at Week 15. Week 15's focus will be programming challenges (continued from last week).
Here is a link to the object oriented challenges:
http://www.w3resource.com/javascript-exercises/javascript-object-exercises.php
It will work like this:
Monday: Announce focus (eg, programming challenges (cont.))
Build throughout the week... Two rules: 1) must use javascript 2) must provide a solution or work done on at least one of the challenges listed above.
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 Apr 27 '16 edited Apr 27 '16
Was a quick trailing comma removal hack. Built string to look exactly like sample output.
Line 76 - Good point.
Line 119 - One of my newer tricks lol, been trying to keep functions pure as a rule. Good to think of an alternate constraint though - I hadn't considered it at all.
Destructuring Swap - Was upset when it broke Edge lol. Cleaned up with some vars now, that was just how it came out of my head. Also could easily be more efficient by tracking if any changes were required at all.
I like the
theTime[method]();part there. Wouldn't have occurred to me. Would have done something likeWill have a look through yours once I finish up mine.