Conteúdo do Curso
Introduction to JavaScript (staging)
Introduction to JavaScript (staging)
2. JavaScript syntax
JavaScript SyntaxJavaScript VariablesJavaScript OperatorsIdentifiers in JavaScriptNaming IdentifiersReserved keywords in JavaScriptNaming Convention in JavaScript. Case StylesVariables Naming ConventionBoolean Naming ConventionConstant Naming ConventionFunction & Classes Naming ConventionMultiline StringsMultiline Strings. ConcatenatingCommenting in JavaScriptCommenting in JavaScript. Multi-line Comments
3. Data Types and Variables
What are Variables?What are Data-types?JavaScript and Type ConversionVar 1/3Var 2/3Var 3/3Let 1/2Let 2/2Constant 1/3Constant 2/3Constant 3/3Number 1/3Number 2/3Number 3/3Boolean 1/4Boolean 2/4Boolean 3/4Boolean 4/4Strings 1/5Strings 2/5Strings 3/5Strings 4/5Strings 5/5BigInt 1/3BigInt 2/3BigInt 3/3Symbols 1/3Symbols 2/3Symbols 3/3NullUndefinedNull vs Undefined
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
Swipe to begin your solution
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Solução
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 10
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
Swipe to begin your solution
Store the value of pi in the constant and name it with an uppercase and show it on the console.
Solução
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 2. Capítulo 10
Mude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo