JavaScript is a versatile and powerful language, but it can also be tricky to master. Here are 20 JavaScript tricks and tips that every developer s...
For further actions, you may consider blocking this person and/or reporting abuse
This is a great article! However, you probably shouldn't use the spread operator to clone nested objects. Objects are references so a shallow clone with the spread operator will clone nested refs, not the objects. You should use
structuredClone()
instead.Thanks @skamansam
Hey, a new to code and am learning JavaScript.
Great to hear you, All the best .
Super helpful @dipakahirav! I like the series you made- you are a wonderful teacher. Currently working on a React JS project myself, and I found these tips really helpful!
π
Thank you so much for kind words. Means alot.
Great articles. Simpler and neat explanation.
Thanks @moglimanani
Great insight links , and eye opening for junior and Senior develops.!
Kindly thanks
Your Welcome @kin7777
Great one. So satisfying to realize that I am using most of them, but still some good ones to include in my work
Great short summary!
Thanks @tomasdevs
informative article
informative article
Thanks @michalispapamichael
Cool!
As a newbie I've now got something worth knowing,big thanks to you bro
I use everything except Short-Circuit Evaluation, I believe that's a feature to avoid. It's just too different from other programming languages out there and it requires implicit knowledge of what evaluates to truthy or falsy in JavaScript, which is a weird concept in itself (I generally think that loading up special values of classes meaning something else is a bad idea).
Just to note - provided examples for object cloning is not deep clone. Which means that if the object has nested arrays/objects - they will still have references to the original objects/arrays. lodash library has "cloneDeep" method which can achieve deep cloning
Correct. Shallow cloning copies references. Use Lodash cloneDeep for true copies.
Your article on JavaScript is excellent!
However, it seems to be missing a section on completely hiding JavaScript from the browser. If youβre interested, we can either add this content to your post or provide the text for you to include.
Thanks for thisππ―, very helpful
Concept of nullish coalescing explained very clean... Thanks
Can we also promote using TypeScript as a superscript of JS?
Good read! Thank you!
Neat explanation.
I really like the concept of nullish coalescing.
Some concepts I rarely use :β -β |