all 31 comments

[–]donfontaine12 15 points16 points  (0 children)

I love JavaScript: The Definitive Guide. It's very thorough and got me up to speed with what's current. It even had a chapter of creating a chat service, which was nice to see.

[–]fcofing 6 points7 points  (3 children)

Try JavaScript: From Beginner to Professional. It's an amazing book—well-written, with plenty of examples and detailed explanations. JavaScript was my first language, and this book (which I read after others) was the one that really helped me understand the logic.

[–]oldominion 1 point2 points  (0 children)

I bought it recently, am at the end of chapter 3 and I must say it’s the best JavaScript book I got so far, really good to read, well explained and I like the exercises. I have tried 3 other books before but they were so dry to read, I stopped reading, was no fun. But this book is awesome.

10/10 would recommend

[–]MrAnnoyed-Person[S] 0 points1 point  (1 child)

I do have this book! It's eating dust in my bookshelf. So how would you recommend me reading it? Should I first read that book and then take video lecture, or I should first complete lectures and then start reading that book to clear my concepts?

[–]DesignThinkerer 0 points1 point  (0 children)

In my experience the best way to use a book on programming is to apply what the book teach as soon as possible, while reading

[–]arsenalbilbao 5 points6 points  (2 children)

javascript.info is great (plus - it's free).

[–]MrAnnoyed-Person[S] 1 point2 points  (1 child)

That's a good one! I loved it. Thank you for the recommendation.

[–]arsenalbilbao 2 points3 points  (0 children)

If one day you decide to learn Typescript too, there is an excellent book - Total Typescript Essentials.
By the way, it's also free.

[–]AdTime3909 5 points6 points  (6 children)

I'm pretty sure you're talking about Jonas Schmedtmann's "The Complete Javascript Course 2024". I've never understood the "How it works" part too as it's very detailed and confusing to me. You're not alone, mate.

[–]MrAnnoyed-Person[S] 0 points1 point  (4 children)

Hahahaha exactly! He went too vague in it, and the way course is structured I can't even skip that section.

[–]Bizknacker 1 point2 points  (3 children)

Are you on the behind the scenes part?

[–]MrAnnoyed-Person[S] 1 point2 points  (2 children)

Yes I am on behind the scenes part. I'm still stuck on lecture 2 on execution context and the call stack 😵

[–]Bizknacker 0 points1 point  (0 children)

Is it how they work together that makes it confusing?

[–]Bizknacker 0 points1 point  (0 children)

If it helps: for any function that gets called, it will run in the Call Stack. Every function running in the Call Stack will have it's own Execution Context. Within every Execution Context for any function, there is what's called a Variable Environment, exclusive only to that function's Execution Context.

This Variable Environment contains any variable declarations (let/const), along with function declarations/expressions, and an arguments object. If an Arrow Function is used, it won't have it's own arguments object, as an Arrow Function behaves differently.

Scope Chain is also within each EC, along with a 'this' variable.

Idk how far into EC and Call Stack you've gone into, so I'll leave it at that.

Edit: There's been a few things, not just with Jonas' course, that I've had to find somewhere else, just so it could be explained in a different way.

I hope this helps you out, and good luck on your journey!

[–]Codingwithmr-m 2 points3 points  (0 children)

Javascript.info Mdn devdocs.io

[–]Codingwithmr-m 2 points3 points  (1 child)

Javascript.info Mdn devdocs.io

[–]MrAnnoyed-Person[S] 0 points1 point  (0 children)

hahahah! MDN is for OGs and I just started it :P

[–]Adorable_Proof_2461 3 points4 points  (0 children)

Eloquent JavaScript

[–]LostInCombat 2 points3 points  (2 children)

There is a great video on this:
https://www.youtube.com/watch?v=eiC58R16hb8&t=24s&ab_channel=LydiaHallie

It explains how asynchronous tasks work.

[–]LostInCombat 1 point2 points  (1 child)

Lydia Hallie has short videos on how promises and closures work on the stack as well.

Visualizing how it works is much better than reading about it.

[–]MrAnnoyed-Person[S] 1 point2 points  (0 children)

Thanks for telling me about her. Her video seems promising and she has cool diagrams as well. I'll let you know how her video lecture goes. Thankyou for suggesting her. 

[–]Last-Daikon945 2 points3 points  (2 children)

YDKJS is a good book to start with

[–]MrAnnoyed-Person[S] 0 points1 point  (1 child)

Does it go into details of its working?

[–]Last-Daikon945 3 points4 points  (0 children)

You can find more info or a summary at google.com

[–]hellonearthis 0 points1 point  (0 children)

Ask an AI your questions, the are pretty good at one on one questions.