How to name variables and functions in JavaScript

Veröffentlicht am: 04 Juli 2022
auf dem Kanal: Scrimba
3,144
102

🎓 View our courses: https://scrimba.com/links/all-courses

In this video, senior developer Michael talks us through his advice on deciding names in a code base.

We look at how to decide a variable name, best practice for naming functions, and, perhaps most importantly of all, whether it is wrong to call a button 'btn'.

💻 Contents: 💻
00:40 - How to name a variable
03:28 - Variable names should scream intent
03:48 - When naming goes wrong
04:18 - How to name functions
04:50 - Casing on verb names
05:34 - is doDodoDonation() a good function name?
06:34 - Naming things intuitively
07:19 - When code naming goes wrong
09:11 - Is it wrong to call buttons ‘btn’?

📺 Full interview here:
   • Learn to write good code with a senio...  

💻 Check out Scrimba’s interactive learning platform:
https://scrimba.com/

🌲 Linktree:
https://scrimba.com/links/linktree


Auf dieser Seite können Sie das Online-Video How to name variables and functions in JavaScript mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Scrimba 04 Juli 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 3,144 Mal angesehen und es wurde von 102 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!