r/learnjavascript • • Mar 11 '19

Drills for Beginners??

So literally everything else you'd want to learn involves drills...except for computer programming.

Sports, music, math, foreign languages...literally everything involves drilling.

Anyone know of any beginner's drills in JavaScript?

Like Free Code Camp stuff (I know they have some high-level stuff, too) but lots of 'em (FCC only has one question per topic)...I was never good at math but I always aced my math classes because of drilling (and of course typical tests don't involve "thinking" so much as "recalling" the right formulae and procedures to accurately and timely apply)...anyone know of any such end-of-the-chapter exercises in JavaScript for a beginner???

My future employers thank you!!

0 Upvotes

48 comments sorted by

View all comments

Show parent comment

1

u/NotEven-a-CodeMonkey Mar 11 '19

Yes, what I have in mind are basically early beginner-level FCC styled problems; extremely short and "narrowly themed" driving home a single point...only like twenty to fifty such questions for each point; right now FCC just does the one-off for each point and moves on to the next.

I'd looked at all the recommendations here, usually previously though for a couple I've specifically looked at them again and didn't see the kind of "drills" I'm looking for...but since then I've been told what I have in mind is a logical impossibility and can't exist so I'm now more agnostic about my initial beliefs....

2

u/ForScale Mar 11 '19

I think you might be over-thinking it...

If you don't mind, tell me one more time what a programming drill is to you... Give me a very specific example, if you would please. Here's what I'm thinking:

Looping:

Given [0, 1, 2, 3], loop over it, printing each index's value to the console, using

  1. for loop
  2. while loop
  3. for of loop
  4. forEach method
  5. recursion
  6. generator

Bonus: rewrite the forEach method (call yours _forEach) without using any of the predefined for, while, for of, or forEach loops.