leonardomso / 33-js-concepts

📜 33 JavaScript concepts every developer should know.
MIT License
63.32k stars 8.84k forks source link

Order by importance #208

Open sheriffderek opened 2 years ago

sheriffderek commented 2 years ago

I'm not a prolific JS dev or anything, but "Call Stack" being #1 seems pretty unimportant. Most if not ALL devs I've ever worked with know very little about this. I'm not saying it isn't important (at least at a base level of understanding) but - is it the most important thing on this list if you were trying to teach your friend?

jesusantguerrero commented 2 years ago

In mid/senior-level interviews there are chances of live code sessions, where questions are about fundamental concepts or you would need to know fundamental concepts or understand how the language works to answer.

A basic example will be if they put some timeout and promises printing logs and ask you in what order the logs are going to be printed

You can check out the logic here.

https://www.jsv9000.app/?code=c2V0VGltZW91dChmdW5jdGlvbiBhKCkge2NvbnNvbGUubG9nKDEpfSwgMCk7CgpQcm9taXNlLnJlc29sdmUoKS50aGVuKGZ1bmN0aW9uIGIoKSB7CiAgY29uc29sZS5sb2coIjIiKQogIHJldHVybiBzZXRUaW1lb3V0KGZ1bmN0aW9uIGMoKSB7CiAgICBjb25zb2xlLmxvZygiMyIpCiAgfSkKfSkudGhlbihmdW5jdGlvbiBkKCkgewogIGZ1bmN0aW9uIGUoKSB7CiAgICBjb25zb2xlLmxvZyg0KQogIH0KICBlKCkKfSk7Cgpjb25zb2xlLmxvZyg1KQ%3D%3D

sheriffderek commented 1 year ago

2 years later, I'm sure I haven't had to think about the call stack once in my real work. (I got pulled over by some email alerts) But - just tossing in another vote for that! : )

anchitgupta01 commented 12 months ago

i think order will be from basic to advance to get learn things feasibly