Clean Code & Best Practices

Lesson 1
18 min

What is Clean Code?

Code is meant to be read by humans.

Iklan

Meaningful Names

Use intention-revealing names.

Bad:

const d = 10; // elapsed time in days

Good:

const elapsedTimeInDays = 10;

Iklan