Created by Dhanian (@e_opore on X)
JavaScript is evolving rapidly, and mastering the right shortcuts can make you a faster, smarter, and more effi...
For further actions, you may consider blocking this person and/or reporting abuse
function greet(name = "Guest") {Hello, ${name}return
;}
It is good practice to pass parameters in object rather than this old way, this will save the sequence issue and undefined issue
function greet({name = "Guest"}) {Hello, ${name}return
;}
No...It's not always a good practice. And here, it's a bad one.
It's usefull when you have a function with 3+ parameters, cause it improve usability/readability
it's a bad practice on simple functions especially when you use Javascript :
Thanks for checking out
Thanks for sharing this valuable information 🥰
Thanks for checking out
You're welcome.
Learned new things from your post, thank you for sharing with us!!
How are people still putting these moronic articles out for things that have been here for almost a decade now.
To make JavaScript easier
As a beginner so much useful information, just in one page. Thanks bro.
Thanks for checking out
StucturedClone is good to
Nice one, l had to go through to check if l was a really js developer😁
Great collection..!!
Thanks for sharing.
Thank you for sharing