r/javaScriptStudyGroup • • May 10 '16

CHALLENGE: Write a multiplication function...

2 Upvotes

CHALLENGE:

Write a multiplication function that takes two numbers integers as arguments and returns their product.

Rules:

  1. Cannot use * or / operators

  2. Cannot use Math object

  3. Cannot use for (any variation) or while (including do) loops


r/javaScriptStudyGroup • • May 05 '16

just for fun... Image Slider Template

Thumbnail
codepen.io
2 Upvotes

r/javaScriptStudyGroup • • Apr 25 '16

[Week 15] Focus: Programming Challenges (cont.)

2 Upvotes

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!


r/javaScriptStudyGroup • • Apr 18 '16

[Week 14] Focus: Programming Challenges

2 Upvotes

So here we are at Week 14. Week 14's focus will be programming challenges.

Here are the prompts:

// Write `add` function
add(1, 2) //=> 3
add(1)(2) //=> 3

// Write `fold` function using recursion
fold(add, 0, [1, 2, 3]) //=> 6

// Write `map` function using `fold`
map(add(1), [1, 2, 3]) //=> [2,3,4]

// Fix it
for (var i = 0; i < 10; i++) {
  setTimeout(function() {
    console.log(i)
  }, i * 1000)

It will work like this:

  • Monday: Announce focus (eg, programming challenges)

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


r/javaScriptStudyGroup • • Apr 12 '16

[Week 13] Focus: Object object

2 Upvotes

So here we are at Week 13. Week 13's focus will be javascript's Object object.

Background info: https://msdn.microsoft.com/library/kb6te8d3%28v=vs.94%29

It will work like this:

  • Monday: Announce focus (eg, Object object)

  • Build throughout the week... Two rules: 1) must use javascript 2) must use at least 1 direct example of JavaScript's Object 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!


r/javaScriptStudyGroup • • Mar 21 '16

[Week 10] Focus: apply(), call(), bind()

2 Upvotes

So here we are at Week 10. Week 10's focus will be apply(), call(), bind().

Background info (lengthy, but touches on all three): http://javascriptissexy.com/javascript-apply-call-and-bind-methods-are-essential-for-javascript-professionals/

It will work like this:

  • Monday: Announce focus (eg, apply(), call(), bind())

  • Build throughout the week... Two rules: 1) must use javascript 2) must use at least 1 example each of apply(), call(), bind().

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


r/javaScriptStudyGroup • • Mar 07 '16

[Week 8] Focus: DOM Manipulation

2 Upvotes

So here we are at Week 8 (two months strong!! :)). Big THANK YOU!!! to all who participated in Week 7 (which can now be found over in the sidebar). Week 8's focus, as sourced from the participants of Week 7, will be DOM manipulation.

Background info on Document Object Model:

http://www.w3schools.com/jsref/dom_obj_document.asp

https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model/Introduction

It will work like this:

  • Monday: Announce focus (eg, DOM manipulation)

  • Build throughout the week... Two rules: 1) must use javascript 2) must use at least 1 example of manipulating the DOM.

  • Friday: Post entries/demos/projects in this thread; first line of an entry should be ENTRY in bold, 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; try to be somewhat specific if possible.

But that's about it... Have fun! Be creative... or not. :) Feel free to ask questions and discuss throughout the week!


r/javaScriptStudyGroup • • Feb 16 '16

Event Capturing Demo

2 Upvotes

I put together a little event Capturing / Bubbling Demo - Codepen
 

Demonstrates how you might control surrounding elements reaction to an event on a nested element. Easy to have something happen before or after the main event is registered.
 

Based on this Article


r/javaScriptStudyGroup • • Feb 08 '16

[Week 4] Focus: Flexible Display

2 Upvotes

So, here we are, Week 4. Week 4's focus will bee flexible display. The idea here is to emulate an aspect or aspects of css's display:flex functionality. This could be using javascript that calculates width of child elements based on the parent's width. Or it could be something like making an element responsive to screen resizing. Let your imagination run wild!

It will work like this:

  • Monday: Announce focus (eg, flexible display)

  • Build throughout the week... 2 rules: 1) must use javascript 2) must use at least 1 example emulating css's display:flex)

  • Friday: Post 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/vote on 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, then 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!


r/javaScriptStudyGroup • • Feb 01 '16

[Week 3] Focus: Recursion

2 Upvotes

Greetings!

So, here we are, Week 3. Not too much participation in Week 2, but that was expected. We'll keep pressing forward!!! Week 3's focus will bee recursion.

It will work like this:

  • Monday: Announce focus (eg, recursion)

  • Build throughout the week... 2 rules: 1) must use javascript 2) must use at least 1 example of recursion)

  • Friday: Post 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/vote on 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, then 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!


r/javaScriptStudyGroup • • Jan 25 '16

[Week 2] Focus: Higher Order Array Functions

2 Upvotes

Greetings!

So, here we are, Week 2. Not too much participation in Week 1, but that was expected. We'll keep pressing forward!! Week 2's focus will bee higher order array functions (eg, forEach(), filter(), map(), reduce(), sort(), etc).

It will work like this:

  • Monday: Announce focus (eg, higher order array functions)

  • Build throughout the week... 2 rules: 1) must use javascript 2) must use at least 1 higher order array function (can be any of the above examples or one that was missed)

  • Friday: Post 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/vote on 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, then 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!


r/javaScriptStudyGroup • • Jan 18 '16

[WEEK 1] Focus: Nested Loops

2 Upvotes

Greetings!

So, here we are, Week 1. We had some discussion (here) and it seems we've decided to go with nested loops as the focus of our first challenge.

It will work like this:

  • Monday: Announce focus (eg, nested loops)

  • Build throughout the week... 2 rules: 1) must use javascript 2) must use at least 1 nested loop (can be for, while, do while, etc)

  • Friday: Post 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/vote on 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, then 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!

Link to a discussion that's already started: https://www.reddit.com/r/javaScriptStudyGroup/comments/41btv6/nested_loop_exercises/


r/javaScriptStudyGroup • • Jan 17 '16

Nested Loop Exercises

2 Upvotes

Each of these problems should have a height argument in the function. Ex.

makeTriangle(height);

Write programs to make each design in your console, and it should work for any height supplied to the function.

      1
     22
    333
   4444
  55555
 666666

   1
  222
 33333

//For this one, the input can be changed to an odd number (the next higher number)
     1
    22
   333
    44
     5

r/javaScriptStudyGroup • • Jan 14 '16

Well... we've got 10 readers/subscribers now...

2 Upvotes

According to the sidebar and traffic stats, we've got 10 people here now. I think that's enough to start piloting the group.

In this thread, let's come up with some basic ideas for format/first focus.

We'll vote on comments to show what suggestions we think are best for the first week (we'll call next week the first official week).

DO NOT BE AFRAID TO SHARE ANY AND ALL IDEAS. ANY AND ALL SKILL LEVELS ARE WELCOME! :)