Abschnitt 2. Kapitel 10
single
Constant Naming Convention
Swipe um das Menü anzuzeigen
Constant naming convention
Constants are planned to be non-changing variables. It is best to practice to distinguish constants from other variables and the best way to write them is in UPPERCASE (capital letters).
123456// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Aufgabe
Swipe to start coding
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 10
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen