How to name variables and functions in JavaScript

Published: 04 July 2022
on channel: 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


On this page of the site you can watch the video online How to name variables and functions in JavaScript with a duration of hours minute second in good quality, which was uploaded by the user Scrimba 04 July 2022, share the link with friends and acquaintances, this video has already been watched 3,144 times on youtube and it was liked by 102 viewers. Enjoy your viewing!