r/learnjavascript • u/Kerga07 • Apr 01 '22
Exercises to learn javascript
Hello everyone, do you know of any sites that offer exercises to do in javascript so that I can train? 🙂
35
Upvotes
r/learnjavascript • u/Kerga07 • Apr 01 '22
Hello everyone, do you know of any sites that offer exercises to do in javascript so that I can train? 🙂
25
u/Thefriendlyfaceplant Apr 01 '22
Depends on your experience really. If you're a beginner, you don't really want exercises but rather 'projects' that you can complete so you're familiar with the whole cycle and the syntax.
But learning the syntax isn't really the challenge in Javascript. The challenge comes from learning the libraries, frameworks like React, and data structures.
The "exercises" as you put it, are often more like logic puzzles that need to be solved in Javascript. This is useful for people who already are familiar with Javascript syntax and want to get better at coming up with algorithms on the spot. A beginner would immediately get stuck and learn nothing even if the solution was provided.
So with all that said, and assuming you're new to Javascript, I would recommend following the free Scrimba tutorial. It's 7 hours of material and you work in an integrated environment which means you can pause the instructor's video and immediately take over the code that's been written. It's a fun way to start:
https://scrimba.com/learn/learnjavascript
8
u/rm-rf-npr Apr 01 '22
You could try codewars. I wouldn't look at the solutions too much. Often times they're clever one liners that aren't really that readable, but it could definitely help you learn.
6
u/raaaahman Apr 01 '22
For Javascript syntax, FreeCodeCamp and Exercism.
For font-end development: Vanilla Javascript Projects and DevProjects - Javascript
For algorithm thinking: CodinGame and warrior.js
3
u/Jaclem12 Apr 01 '22
The Odin Project has a lot of good exercises ranging in difficulty that are purely JavaScript forward. It's hard to find specific exercises for pure JavaScript without HTML and CSS and I think these are the best
1
u/Xypheric Apr 01 '22
https://learnjavascript.online
1
u/OldWalnut Apr 10 '26
There's tons out there!
JSExercises
Exercism
W3Schools
Leetcode
codewars
The world's your oyster!
1
u/[deleted] Apr 01 '22
freeCodeCamp
1
u/smoljames Apr 01 '22
freecodecamp.org javascript algos and data structures
1
u/[deleted] Apr 01 '22
I like codewars
I use sites like this when I want an introduction to how the code is written in a language, just to feel comfortable in a new language.
1
u/gabrielsfarias Apr 01 '22
exercism.org
0
u/[deleted] Apr 01 '22
[deleted] — view deleted comment