Clean Variables in JavaScript #1 | Clean Code Tutorial

preview_player
Показать описание

In this scrim, we start looking at how to write clean variables.

As with all clean code, variables should be:
- Searchable
- Readable
- Understable

We should also be sure to:
- Follow language standards
- Limit scope
- Create new variables instead of reusing them
- Choose names which describe what the variable does

Learning clean code is one of the best career investments you can make. By spending one hour to learn the fundamentals, you get to reap the benefits across all your future code bases. It's 10x the payoff for the effort.

🔧 Play with this code on Scrimba:

💻 Check out Scrimba’s interactive learning platform:

🌲 Linktree:
Рекомендации по теме