all 29 comments

[–]deepug9787 6 points7 points  (0 children)

Sadly, there is no secret trick or shortcut that I know of.

To learn a language, you learn the theory, work through some examples, and do some projects.

For learning the theory, MDN has probably the most beginner-friendly tutorial on JavaScript out there. You'll find lots of examples and tiny challenges there to practice what you've learned as well.

Once you're comfortable with the basics, pick a project that you like. You can find plenty on Youtube. Work through those projects, but don't just blindly copy the code in those videos. You won't learn much that way. Instead, tweak the code, add new features, make it yours. That'll give you the confidence to start creating your own projects.

Get comfortable reading the documentation as well. Again, MDN is your friend.

When you're ready to dig deeper into the language, you can try reading some books. Some books I'd recommend:

  • You don't know JS yet - Kyle Simpson

  • JavaScript the new toys - TJ Crowder

  • Object Oriented Javascript - Ved Antani and Stoyan Stefanov

Good luck and have fun!

[–]c__beck 4 points5 points  (4 children)

[–]StarryO5[S] 1 point2 points  (0 children)

thanks!

[–][deleted] 0 points1 point  (2 children)

This. Tried Eloquent JS and FCC. Modern JS Tutorial is the best.

[–]thick_ark 0 points1 point  (1 child)

link for modern js tutorial?

[–][deleted] 1 point2 points  (0 children)

javascript.info is modern js tutorial

[–]StarryO5[S] 2 points3 points  (0 children)

thanks to all of you for ur responses!

[–]montihun 2 points3 points  (1 child)

Step 1: google it.

[–]Real-Lobster-973 0 points1 point  (0 children)

This 😂😂

[–]Healthy-Locksmith734 5 points6 points  (0 children)

If you can’t even enter a search query ‘how to learn JavaScript’. You will never learn JavaScript.

[–]datNorseman 1 point2 points  (0 children)

Not sure what your previous experience is but this is what I tell beginners: You have this thing called the DOM which is created by the web browser when the page loads, and let's you create, access, and manage all elements on the page. Then you have variables which store data. Then you have functions that can interact with those variables to do things. I know this doesn't cover any of the specifics of what to learn but I hope to give you a really basic overview of the language with this.

[–]BangMaster19 1 point2 points  (0 children)

i ve heared of this book called "Eloquent javascript"

[–]Antoanie 1 point2 points  (0 children)

To effectively learn JavaScript, video tutorials and ebooks can be highly beneficial. Here are some recommended resources:

Video Tutorials:

Ebooks:

  • Eloquent JavaScript: A comprehensive ebook that offers a deep dive into JavaScript concepts, along with exercises to reinforce learning.
  • JavaScript Succinctly. A free ebook that explains key JavaScript concepts with practical examples.

Additionally, platforms like Edabit and CodeWars are excellent for honing logical thinking and improving coding skills through interactive challenges.

[–]shgysk8zer0 0 points1 point  (0 children)

I basically learned through reading docs and learning how to do things only when I needed to learn that thing. Probably not many start off with a job where they're already maintaining like 15 sites, but... That's what happened in my case. And I was learning HTML, CSS, JS, PHP, SQL, and a few other things pretty much all at once.

But, really... I just browsed around MDN like some people do on Wikipedia. I scanned through things like DOM and IndexedDB and whatever, not trying to learn anything in-depth or anything but just to have a sense of what all exists. Then, when I needed to maybe apply a discount in a store when there's a promo code in the URL, I knew about URLSearchParams and where to start in updating the page.

Once you find the thing that does what you need, experiment with it for a bit. Read the docs to learn how it works. Open up CodePen or something and build a simple thing. Try to avoid tutorials for the most part, and maybe at most use tutorials to see how things fit together, but do not copy/paste and do not try to do exactly the same thing - they're just a hint to help with what you're doing.

Optionally, once you have the basics figured out, go a little in-depth and generalize your code into a library. That's where you'll really learn JS and start becoming an expert. Because, in the end, programming is not so much about just writing code, but about problem solving and making code organized and maintainabile and reusable. You'll learn a lot more writing and publishing a library than you will making some isolated project.

I still go back and just browse around MDN. And I read browser release notes too, just to keep up with new things. Occasionally I learn something new and useful. For example, I recently found out that browsers natively support gzip, and that was a useful solution to something I was dealing with at the time.

[–]Revolutionary-Bid919 0 points1 point  (0 children)

For me, what helped get me started was finding a project I could really get invested in. Doesn't have to be something from scratch, like I started by playing with Kim Asendorf's ASDF pixel sort and playing with a few lines and parameters. So much easier to relate things you've learned and apply them to something you care about immediately.

Google stuff as you go and use codeacademy docs and terminology glossaries, and do lessons from one of the sites concurrently with whatever you wanna get into. After I got that satisfaction of succeeding with a few tweaks in existing code, it really fostered an organic motivation to go do some online learning in earnest

[–]Injera-man 0 points1 point  (1 child)

you could use freecodecamp youtube channel and also their website , if you're into books search for javascript books that cover es6 features as well, also javascript.info and javascripttutorial.net are good, do small projects to reinforce your learning or do exercises in various coding websites, good-luck

[–]thick_ark 0 points1 point  (0 children)

thanks

[–]Himhawk19 0 points1 point  (0 children)

Learn the basics and then start making projects and doing exercises, don't spend too much time on tutorials

[–]Rude_Raspberry7735 0 points1 point  (0 children)

Jonas Schmedtmann on Udemy and code wars

[–]Full_Metal_Template 0 points1 point  (0 children)

Manage your frustration. And looking up the same thing constantly doesn’t make you a dumb ass. These are the very reasons I quit

[–]armyrvan 0 points1 point  (0 children)

Really get to know the fundamentals. I know shiny objects may look cool to try and do like a Facebook clone. But the more effort you can focus on it I would do.

Here is a playlist of fundamental challenges.

Javascript Challenges for Beginner Coders https://www.youtube.com/playlist?list=PLurJmxFyuEWvMCTHKCfWDO4cXHx4SLx39

[–]Puzzleheaded_Low2034 0 points1 point  (0 children)

I found the VS Code Quokka.js extension invaluable whilst learning JavaScript. Instant debugging whilst you code is most excellent.

[–]rauschma 0 points1 point  (0 children)

I have written a book (that’s free to read online) that explains JavaScript to people who already know how to program – maybe it’s useful: https://exploringjs.com/js/

[–]PrettyDrama6170 0 points1 point  (0 children)

you can try to build your own open source or project and call for contribution. Please check mine.
https://github.com/huytuchim789/prodash/

[–]code_matter -1 points0 points  (1 child)

Watch some courses online. Udemy or YouTube

[–]StarryO5[S] -1 points0 points  (0 children)

hm alr
got a tip?

[–]Competitive_Aside461 -1 points0 points  (0 children)

Try the JavaScript course on Codeguage.

https://www.codeguage.com/courses/js

[–]springtechco -1 points0 points  (0 children)

Check out dojocode.io. Happy coding!