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).
123456// UPPERCASE const SECONDS = 60; const MINUTES = 60; const HOURS = 24; const DAY = SECONDS * MINUTES * HOURS; console.log(DAY);
Swipe to start coding
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Solução
Obrigado pelo seu feedback!
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Awesome!
Completion rate improved to 2
Constant Naming Convention
Deslize para mostrar o menu
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);
Swipe to start coding
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Solução
Obrigado pelo seu feedback!
Awesome!
Completion rate improved to 2single