8 techniques to write cleaner JavaScript code

preview_player
Показать описание
In this video, I'm gonna teach you 8 different techniques to write better javascript code. These are crucial especially if you're a junior developer and are working on medium to large scale applications within a team.

If you like the video, consider subscribing to the channel and sharing the video. That really helps the channel grow ❤️

🎥🎤📷 GEAR for Content Creation (contains affiliate links) 🎥🎤📷:

❤️❤️ Become a Supporter at Patreon (because you're awesome):

❤️ Support the CodeWithAhsan community One-Time-Only:

🎥 Live Streams / Free sessions:

👉 Socials:

TimeCode:
00:00 - Intro
01:01 - Writing Pure Functions
07:43 - Object/Array Destructuring
12:23 - Avoid Hard-coded values
15:16 - Avoid Short-hand variable names
19:34 - Use method chaining
21:20 - Use Promises over Callbacks
27:42 - Outro
Рекомендации по теме
Комментарии
Автор

Which is your favorite technique out of these 8 techniques?

CodeWithAhsan
Автор

7 and 8 are really good. Thanks for explaining those so well.

DidouSchol
Автор

All the practices that you mentioned are amazing but the way you explained Method chaining, default object values and promises over callbacks are just super awesome 🤩. Thankyou for such amazing content❤️

AhmedAli-nzmd
Автор

What IDE/Plugin are you using to write the Unit Tests?

Jaypoc
Автор

At dev.to you write if we have more than 2 parameters we should youse an object and in the function createUser you are using 3 params without an object. For me this is not very trustworthily.

groovebird