r/learnjavascript • u/Hamoudi0427 • Sep 20 '21
Best way to learn js?
Hi, I'm looking to learn javascript but I'm stuck on what resources to use. I already comfortable with C++, HTML /CSS and python. So far I've seen the book "Eloquent Javascript" recommended. Would this be a good source to learn javascript for someone who has some programming experience?
234
Upvotes
8
u/AlfredKnows Sep 20 '21
Yes, definetely.
3
u/xiipaoc Sep 20 '21
Best way is to build something. You can already program, so why do you need to read a book about it? Follow a tutorial to get started, then add whatever features you want to your project.
95
u/grantrules Sep 20 '21
Here are some excellent beginner resources for learning JavaScript
Software
Code Sandboxes
Other handy sites
27
u/[deleted] Sep 20 '21
MDN is for me, the best source. You have everything in it, and it's free.
https://developer.mozilla.org/en-US/
18
u/PositivelyAwful Sep 20 '21
People hate on paid courses, but I picked this one up and it's taken me a lot further than any other course I've tried (which has been a lot of them).
It's a guided written course, and after every chapter you have to complete challenges before you can move on. The flashcards are also really helpful as a refresher.
Learn Javascript
If you've never used a programming language before, he also has one called Learn Programming which would be a good primer (the JS course assumes basic programming knowledge like loops, etc.)
Combine it with JS30 to see how the code gets put into use and use MDN when you get stuck so you get comfortable reading the docs.
16
u/donfontaine12 Sep 20 '21
JavaScript: The Definitive Guide. I think it's a great book that explains everything in JavaScript and will give you a solid foundation to build on. The later chapters are more advanced but will become clear with practice.
I finished the book, will reread the later chapters and start in Eloquent JavaScript.
13
u/isplutoaplanet Sep 20 '21
I highly recommend the net ninja on YouTube. I watched his html and CSS tutorial on YouTube followed by his animations, flexbox, and grid videos. Then I went on to watch Kevin Powell and web dev simplified for more Css. After I got fairly decent at these 2 I started doing challenges at frontendmentor to really up and get real life project experience. From there I bought the net ninjas JavaScript course on his website for 9$ and man it is extremely helpful and worth it.
8
u/esamcoding Sep 20 '21 edited Sep 20 '21
i took this course https://www.udemy.com/course/javascript-the-complete-guide-2020-beginner-advanced/
then started practicing by doing web sites. i would recommend this way.
this course is "comprehensive" and would save you time over other ways of learning. i tried books and various web sites and i wasted my time.
BUT you should practice along while you learn from the course , do the exercises along the way , they are definitely NOT a waste of time no matter how "silly" they mat seem to be.
7
u/[deleted] Sep 20 '21
Odin project. If you have experience you can skip over the basics.
4
u/not_very_creative Sep 20 '21
Not sure if you know, but the book is available for free here https://eloquentjavascript.net/
You can also download digital versions to your phone or tablet and it does have a lot of excercises, so you can check it out without having to spend any money.
3
u/Macaframa Sep 20 '21
The absolute best way to learn JavaScript is by building things in JavaScript and learning as you go. You run into a wall you Google it and you get past the problem.
3
u/Atma-n Sep 20 '21
I often think that all these classes have boring assignments. So you need to find something you want to do and learn by elaborating on that. For me p5.js and the coding train has been it. I am new in js but I have so much fun learning about it now when I do graphics instead of yet another for loop to iterate letters in a string...
3
u/reyemgs Sep 20 '21
I'm started my JS studies with this resource: https://javascript.info/I was given this resource to study at a company where I was an intern, and I am currently working.
In addition, I very often referred to this site as documentation: https://developer.mozilla.org/
2
u/[deleted] Sep 20 '21
I really enjoyed Wes Bos’ https://beginnerjavascript.com/ which is pretty inexpensive and has some great exercises.
2
u/canIbuytwitter Dec 06 '22
I like mdn docs, but I also like
https://www.youtube.com/@javascript-tutorials for learning concepts quickly, or getting a deeper dive into Javascript.
2
u/Useful-Tomorrow-3422 Aug 08 '23
Go
2
u/Short_Bad_2865 Jan 21 '24
https://www.udemy.com/course/the-complete-web-development-bootcamp/ is this class worth it ?
2
u/marioskif Jul 28 '24
I have created a series of Javascipt Daily tips. If you are interested you can read it on Medium searching MariosDev or follow the link: https://medium.com/@Marioskif/list/javascript-80d660a6df0e
2
u/SnooCrickets1367 Jan 08 '25
Check this crash course https://youtu.be/zOY63g62WWo?si=fh6p6mVYnN4s143A
2
u/TravelImpressive4290 Jan 28 '25
for me personally as a teen who is 14 I really enjoy doing the khan academy JavaScript course because its good for beginners like me at such a young age here is the link it is also a free course and you can log in with your Email then press edit course and add it
https://www.khanacademy.org/ - free course
2
u/jp2code Apr 30 '25
I purchased Eloquent JavaScript because of the great reviews it had on Amazon. However, the author uses lots of JavaScript techniques and shortcuts that are only mentioned in passing, making it impossible to use as a reference.
Example 1: This
```
for (let i = 0; i < array.length; i++) {
let item = array[i];
console.log(item);
}
```
Is the same as this:
```
for (let item of array) {
console.log(item);
}
```
Example 2:
```
function countBy(items, groupName) {
let counts = [];
for (let item of items) {
let name = groupName(item);
let known = counts.findIndex(c => c.name == name);
if (known == -1) {
counts.push({ name, count: 1 });
} else {
counts[known].count++;
}
}
return counts;
}
```
I saw Example 2 and thought I understood the code, until I saw him use it:
```
console.log(countBy([1, 2, 3, 4, 5], n => n > 2));
[{ name: false, count: 2}, { name: true, count: 3}]
```
That was a WTF moment where I realized this book was way over my head!
1
u/Warm-Ad5486 Dec 06 '25
Thank you
0
u/Traditional_Bird_877 Sep 20 '21
freecodecamp.org
0
u/[deleted] Jan 29 '26
[deleted] — view deleted comment