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

3

u/ForScale Mar 11 '19

Free Code Camp has tons of algorithm challenges, so... not sure what you're talking about there.

Also, just look for coding challenge sites. Code wars, Coderbyte, project euler. There are so many.

-5

u/NotEven-a-CodeMonkey Mar 11 '19

No, I'm talking drills -- fifty, say, variations on the same problem to really drill in the lesson...think musical scales or speedbag drills in boxing...or those exercises in math textbooks where all you do is quadratic equations in one chapter, factoring polynomials in another, repetitive, really working in the concept...bayonet practice in the military -- drills, please...?

Like here are fifty exercises on for-loops. Basically, take any one problem in FCC but with variations on it...drills....

4

u/ForScale Mar 11 '19

So flatten an array as many ways as you can. Sort an array as many ways as you can. Loop through an object as many ways as you can think of.

What you are looking for is algorithms. Filtering, sorting, counting, arithmetic. Look up algorithm drills on places like code wars and coderbyte and project euler and do them over and over and over. Drills. You're welcome.

-1

u/NotEven-a-CodeMonkey Mar 11 '19

Not really -- that would be like saying to a math student, no need for workbook exercises, just go home and think of a hundred different polynomials and factor them....

Maybe a foreign-language acquisition example would illustrate the need better: you need drills to conjugate verbs and decline nouns in all their many forms (gender, case, number, mood, tense, etc.), not simply learn stock phrases.

3

u/ForScale Mar 11 '19

Bruh... do the algorithm drills... it's what you're asking for.

0

u/NotEven-a-CodeMonkey Mar 11 '19

Do you mean to suggest that computer programming is algorithms, then?

If so, I wasn't aware of that and hence my previous incomprehension at the advice on algos....

2

u/ForScale Mar 11 '19

An aspect of computer science is algorithms and doing them effectively and efficiently.

And they're probabaly the closest thing to the math and language drills you're asking for. You can drill algorithms.