Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How are you going about learning JS? It's my secondary language right now and I've read books, look at code on github and subscribe to newsletter to try to pick it up BUT I haven't been able to be fully "fluent" in it.

I find it hard to explore objects and learn JS core. So much is done with frameworks these days.



JS (for the browser anyway) is difficult in that there's basically three generations, and any docs you read are may be from any of them:

1. Per browser DOM APIs

2. jQuery

3. Modern DOM APIs. document.querySelector(), nodelist.forEach(), element.classList() etc. You'd use CSS transitions for animations you used to do in jQuery.

Personal style also comes into it. Some people use function variables, others functions declarations. Some people put script tags everywhere, others use one of two modules systems. There's no one right way to do things. But there's a lot of wrong ones.

First things first: understand the basics, like async and closures. They haven't changed.

And get the yellow book with the bird.


Funny! I picked that book up yesterday! Assuming you're referring to Eloquent JavaScript. Thanks for the advice!




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: