Node.js has quickly become a standard for building web apps and systems software, thanks to its ability to leverage JavaScript on the back end. Pop...
For further actions, you may consider blocking this person and/or reporting abuse
but why do you use var?
I am guessing someone who likes the nasty habit of hoisting. I would put money on them not being fans of Typescript.
I don't mind
function
hoisting, but I don't know of anyone who likes variable hoisting.Though, I find people who use
let
for absolutely everything to be strange also.. I useconst
for everything unless I absolutely HAVE to use a reassigning variable, which is maybe only 1% of the time at most.Is it hoisting or just global scope?
Hoisting. Because if you are inside another scope (closure for example) it's no longer globally available.
One usecase is when we want to access variable outside the block within the function.
Good points to remember in JS. I really enjoyed reading it.
Thank you very much 😊
Your article is well written. I am the operator of servbay. Can you promote our products? Our official website is servbay.com. If you are willing, we can give you some channel discounts.
I would be an honour 😊😋
How can I contact you? Email?
Hi, is it not for windows users? I can not find any link for windows on your website.
Good advice... for 2014
I gotta point it out.
It seems like the code examples have inconsistent indentation? 🤔
Javascript and Node becoming more popular among developers. it is not bind only for web applications; we are building more complex applications like IOT, machine learning, chatbots, ect.
it is a really game changer for developer.
It's for beginners
Technically it's for 'everyone'.
Beginners will be learning about it, and for advanced people, it's a checkbox exercise to say "yep, I know these concepts".. It's not like, once you are past the beginners stage, you can forget these concepts..
It's always good to remember that async/await is sugar for Promises/then, and class declarations is sugar for prototype. It's good to remember that these are what is happening under the hood. Even if you don't touch these old ways anymore.
Absolutely agree! Understanding these concepts are the backbone of JavaScript and serve as a reminder of what’s happening under the hood. Even if advanced devs rarely use the 'old ways,' knowing them enhances debugging, performance optimization, and deepens overall JavaScript expertise. For beginners, it's a foundation to build on. Revisiting these basics is always worthwhile—it ensures we don’t just write code but truly understand how it works at its core.
advanced beginners ;-)
Shouldn't:
...read:
Hello everyone, id live to get some help, Also how do you all feel about Quantum capabilities ? Early access
Vary nice
Thanks, I haven't seen anyone use IIFE in real programs. I think just Webpack and Babel are use it :-))))
I find rest operators the most useful section in this article my friend
UMD modules are basically IIFE's. AngularJS had heavy use of IIFE's. Finally, CommonJS can see them used to encapsulate
await
syntax.Did you ever use jQuery? Aside of it, IIFE used often when you have to perform some actions during init stage of ESM module.
Great article! I recently discovered the # private property/method thing in JS. But now that I use TS it's not something I use, still cool to see that JS is getting more OOP features though.
broo ,really this is way advanced for a beginner in js
😊
nice post
Great insights on JS. It is very informative.
I've had fun reading this article, thanks bro!
Nice article to bear in mind. Thanks for the clear examples
nice article but try pasting code instead of screenshots
Thank you!
The first I learnt / heard of curry functions and I love it, I am gonna keep using it extensively moving forward
cool article :D
Love these insights keep sharing such valuable thoughts.
This is going to be my everytime go-to revision list. Thanks.
Glad to hear it 😊
Great post! However, it's a shame that the code examples are presented as images instead of regular text, as it makes it harder for readers to copy and test the code themselves.