Constants and Good Names
Some values should never change, the number of days in a week, a tax rate, a founding year. JavaScript has a keyword for that: const. Reassigning a const throws an error on purpose. It's protection, not punishment. Python has no enforced constant; the convention is to write the name in ALL_CAPS as a promise to other programmers.
Naming rules (enforced): names can't start with a digit, can't contain spaces, can't be keywords like let or print.
Naming conventions (culture): Python uses snake_case, total_sales. JavaScript uses camelCase, totalSales. Above all: names should say what they hold. bookstore_revenue beats x every single time.
Mark this lesson complete
Signed in, your progress follows you to every device.