Live data from Hacker News

Ask HN: How do I learn JavaScript?

news.ycombinator.com

41–50 of 128 posts

Re: Ask HN: How do I learn JavaScript?

#41
for the pro here who just want a quick overview of the modern stuff, i found this resource extremely valuable: https://mbeaudru.github.io/modern-js-cheatsheet/

i had no idea eloquent javascript was updated with modern javascript. what a surprise! i read that book many years ago. i will check the other resources too.

Re: Ask HN: How do I learn JavaScript?

#43
At the beginning you'll want to try things quickly. Open Google Chrome, right click anywhere and choose Inspect: this will open the Developer Tools. Click on the tab Console and type 1+1 and Enter. Congrats you just wrote some Javascript!

Re: Ask HN: How do I learn JavaScript?

#44

If you want a "perfect" understanding of ecmascript as it is implemented by V8 why not study the open source code for V8: https://v8.dev/ . How hard will it be? Well how good are you at reading code/ how much do you know about c++? If this seems too daunting, better stick with a less than perfect guide to get you part of the way there.

> how much do you know about c++

"If you think you understand quantum mechanics, you don't understand quantum mechanics." - the same is true for C++ which is one of a few languages impossible to learn to the perfect and complete level.

Re: Ask HN: How do I learn JavaScript?

#45
post #4

My favourite resource that I discovered a few years ago in a similar Ask HN thread: http://eloquentjavascript.net > Where do I go? You don't really need to go anywhere else (especially not into the vortex of looking for the best resource) to learn and be confident with vanilla javascript. > ... and how hard is this actually going to be? Well that depends more on you and your preference for learning materials. I studi…

Thank you, that looks pretty cool and easy to breeze through.

Re: Ask HN: How do I learn JavaScript?

#46

Read the You Don't Know JS series [0] - this tackles much of what people with mediocre proficiency overlook. To go beyond that you would probably want to dive deep in to the ECMAScript specs [1] to really master the language. I don't think it will be that hard, just a slog. [0] - https://github.com/getify/You-Dont-Know-JS [1] - https://www.ecma-international.org/publications/standards/Ec...

OP, this is the best answer to your question. Lots of other answers on this thread are either ignoring the part where you said you wanted to really master the language and recommending introductory JS materials, or, bizarrely, telling you to learn something else instead.

I don’t think you can master a language in one go. It’s not how most people’s brains work. I think you do it in stages. Get yourself a good introductory JS resource. The eloquent javascript book others posted looks good although I haven’t read it myself. Then read You Don’t Know JS. And then study the spec. Almost by definition the spec is the only thing that can give you a perfect and complete understanding the language. But don’t start there as a complete beginner is not its intended audience.

Be sure to apply what you learn from each book by working on projects. Don’t just read the books. The material won’t stick that way.

Re: Ask HN: How do I learn JavaScript?

#49
I like "Javascript for Impatient Programmers": https://2ality.com/index.html

If you mean ES6 as "modern" JS, then you might want to avoid any material on prototypical nature of "true" JS (which it still is under the hood). Personally I find classes and modules to be very useful.

Although you say you don't care for DOM, CSS and the many frameworks, you might need still need to build a small HTML file to kick start your JS programs. I do all my exploring and learning in Chrome's DevTools console and debugger. JS is not that difficult to learn if you already know a curly brace language (C, C++, C#, Java, etc). Even after years of working with JS, fiddling with DOM still catches me off guard on occasion.

Post reply on HN