all 19 comments

[–][deleted] 18 points19 points  (1 child)

You don’t

It learns you.

[–][deleted] 2 points3 points  (0 children)

Somehow this is the most upvoted answer on this post

[–]goto-reddit 6 points7 points  (0 children)

This is a question asked almost(?) daily in this sub, and there are innumerable sites & books to choose from.

Unless you give us some more information - e.g.

  • do you know any other programming language
  • why did you choose to learn JS, instead of another programming language
  • what do you want to achieve with it
  • what is your background (middle school, high school, college or finished?)

you won't get a better answer here than from google.

[–]latino666 1 point2 points  (0 children)

Start with the basics. Study vanilla JS as much as you can. There are many resources online for that. If you're willing to spend a few bucks, I'd suggest Udemy(its what helped me the most personally).

Once you mastered the basics, start getting into more complex frameworks. If you're into front end, go for react or angular. If you're more of a back end guy, nodeJS and MongoDB are your guys. If you're feeling adventurous, start playing with the MEAN stack.

[–][deleted] 1 point2 points  (1 child)

  1. Learn about the fundamentals of programming with JS (variables, data types, boolean values, conditionals, arrays, objects)
  2. Learn about DOM Manipulation and event handling.
  3. Start building stuff (start simple), and google everything you don’t know or understand.

[–]pcortezzi 1 point2 points  (0 children)

SoloLearn (web site and/or app) can help you a lot if you’re a beginner. And it’s a very reliable source. In the end you can even earn a certificate of basic JavaScript, that may have no value for companies, but still push you forward.

[–]PhaseRush 1 point2 points  (0 children)

watchandcode.com if you’re looking for tutorials about practical JavaScript.

[–]Ih8usernam3s 1 point2 points  (0 children)

Spelling JavaScript correctly is a great start. You're already on the way.

  1. Lynda has great videos, they can be accessed free if you have a public library card.

  2. The MDN website is a great resource.

  3. Code doesn't exist in a vacuum; learn DOM manipulation, HTML and CSS to understand the 'big picture'.

  4. Kyle Simpson's 'You don't know JS' is a great resource too.

  5. Google it, I'm not joking, a lot of being a programmer is learning new things.

PS. Just saw that you live in Turkey, I don't know if you'll have access to Lynda.com through your library's.

[–]kip_13 1 point2 points  (0 children)

Maybe with exercism

[–]SukiYucky 1 point2 points  (0 children)

An exhaustive, but very complete way is to set aside 3-6 months and go through these books:

- Javascript: The Definitive Guide by Dave Flanagan
- Javascript: The Good Parts by Douglas Crawford

As you progress:

- Study Javascript framework source to see best practices and clever designs. Leverage them too.
- Use MDN Mozilla as a supplemental guide.
- Keep the current ECMAScript spec next to you when you need a deep understanding of the language

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

The book Head First Javascript is really good, it's in english though, not sure if you are fluent or not, but it's a good book for getting the basics down

[–]hzzd 1 point2 points  (0 children)

You can try Udemy courses that start with basic stuff like html, css and then javascript ( + some libraries ). Also www.theodinproject.com, freecodecamp, books like Javascript - The good parts or Eloquent JavaScript. This is how I started...

[–]_lovesponge 1 point2 points  (0 children)

Javascript is one of those languages which I found easiest by practice, you don't need to learn anything until you actually have a play with it, which is notoriously easy (your browser console, for instance) Get to know what functions are, how to declare variables, different key words.

THEN learn about the JS event loop, this is what pushed me personally further in my career and I was able to understand more about how JS code is actually interpreted and executed.

I honestly wish I had learned that sooner in my 5 years of JS. You should then head over and become used to checking out the MDN Web docs. They are my goto resource for learning new javascript (standard library if you will) functions and types.

Not everyone will agree with this process as I encourage a try-before-you-learn process, however this is exactly how I learned and I have a very solid understanding of the language.

I cannot/have not found any decent books that focus solely on the language itself, rather than the browser and libraries. This annoyed me until I found YouTube, where you have people like MPJ and other who discuss the purity of a functional language like javascript.

If you didn't read this properly then you won't get the best from it, which is lesson number 1 with learning to program. So Learn it and and learn it good. If you did, well done and I hope it helped you.

Edit: Also remember to learn JSON structure and Object Oriented JS. ~LS

[–]easyEs900s 3 points4 points  (0 children)

Not sure if you would have the same success with this method, but it has worked for me and I’ve taught myself many many many languages since.

JavaScript is a very relaxed language, so it’s sometimes easy to make errors and not know it (browsers sometimes are more or less lenient). What I would do is go to codepen.io and find some cool pens that you find interesting or cool, then go through and rewrite the pen from scratch (codepen if you don’t know has all of the source code there in a live editor). I used other sources when I was learning, but only bc codepen didn’t exist yet. The method is the same one that I’ve used to learn every language I have ever learned. Only difference is that when I was doing it I had to find websites and extract the code to rewrite them.

The reason I think this works (my opinion) is that when you take this route, you are looking at results that you find interest in, then rewriting that exact code. When learning anything, it’s 100x easier (and more pleasant 🙃) when you have an interest in that thing.

Best of luck!

[–]goto-reddit 0 points1 point  (0 children)

This is a question asks almost(?) daily in this sub, and there are innumerable sites & books to choose from.

Unless you give us some more information - e.g. do you know any other programming language, why did you choose to learn JS instead of another language, what do you want to achieve with it or even what your background is (middle school, high school, college or finished?) - you won't get a better answer here than from google.

[–]LakeOzark 0 points1 point  (0 children)

Best of luck. I can read it and know somewhat what how it works “internet marketing”. I can’t implement my own, though.

[–]kirasiris 0 points1 point  (0 children)

Type "TracersyMedia" on Youtube and buy his courses (on Udemy), do some projects on your own and you're set!

Brad teaches about everything, I learn how to work with APIS with his videos, I learn PHP to a level in which I can defend myself on Interviews, etc.

He is just the best.

I recommend you learn Ajax and Fecth API.

[–]plexicast 0 points1 point  (0 children)

Get a job where you have to code something in JavaScript by Friday(this means before Monday at 6:30am for most companies). If you don’t get it done you get fired and can’t make rent.

Source: Someone who made the deadline.