How to Write Clean Javascript Code - Use These Techniques

preview_player
Показать описание
Learn how to write clean code Javascript in 10 minutes. In this video I will share 5 important code tricks to make your code scalable, easy to read and support.

TIMESTAMPS
0:00 Introduction
0:09 Use explanatory variables
2:23 Avoid mental mapping
3:21 Default values
4:09 Function arguments
5:56 Default config
7:54 Bonus

FOLLOW ME

RECOMMENDED VIDEOS

MY COURSES
Рекомендации по теме
Комментарии
Автор

Thanks for sharing your experience. It is really helpful.
Tip from my side:
We don't need to declare unused variable "_" as an array destruction, because memory resources are allocated for it. So, it will be better to write: const [, city, zipCode] = ...

yevhen
Автор

Great channel and good tips, I agree with them.

Something else I have for you is that you can write long numbers with underscores.

So instead of writing write 1_000_000. The 2nd one is easier to read (for me atleast).

BUCKTHEWORD
Автор

Why so serious, let's put a smile on that face :) thanks for your efforts, god bless you

Vikram
Автор

For record, this tips applies to all programming/scripting languages :)

beeeeeee
visit shbcf.ru