2 Constants
LogMANOriginal edited this page 2018-11-05 13:24:48 +01:00

Use UPPERCASE for constants

As in most languages, constants should be written in UPPERCASE.

Notice: This does not apply to keywords!

Example

Bad

const pi = 3.14;

Good

const PI = 3.14;

Reference: Generic.NamingConventions.UpperCaseConstantName