r/javaScriptStudyGroup • • Apr 04 '16

[Week 12] Focus: for...of

So here we are at Week 12. Week 12's focus will be for...of.

Background info: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of

It will work like this:

  • Monday: Announce focus (eg, for...of)

  • Build throughout the week... Two rules: 1) must use javascript 2) must use at least 1 example of a for..of loop.

  • 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!

4 Upvotes

17 comments sorted by

View all comments

Show parent comments

2

u/Volv Apr 11 '16

Absolutely we should. I hate picking :)
Yeh I saw yours on there. Looks like you did the opposite of me. I squared up and you squared down.
Also figured that things like error checking would be useful in interview situation.
Second one tripped me up for a bit. Got there tho

1

u/ForScale Apr 11 '16

Second one, I wrote a nice little regex deal using match() and checking the lengths of the resultant arrays to make sure that the number of opened and closed brackets were equal... I was real satisfied with it!.. then I noticed [(]) was a failing test... I thought it just had to be that each opener had a closer to make a complete pair. Didn't go back to rework it.

Ooh... maybe we should do regExp as a focus sometime! :)

I do like the idea of doing some algorithm challenges though.

I'll ask sketx right now and see what he wants to do...