Conteúdo do Curso
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
Constant Naming Convention
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).
// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Tarefa
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Obrigado pelo seu feedback!
Constant Naming Convention
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).
// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Tarefa
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Obrigado pelo seu feedback!
Constant Naming Convention
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).
// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Tarefa
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Obrigado pelo seu feedback!
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).
// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Tarefa
Store the value of pi in the constant and name it with an uppercase and show it on the console.