Contenido del 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
Symbols 3/3
Accessing the Description of the Symbol()
We can access the description of the symbol by calling the .description
method.
let firstName = Symbol('Michael'); console.log(firstName.description);
Tarea
Swipe to begin your solution
Create two symbols personName
and personAdress
by using Symbol()
give them the description of Name
and Address
and display their descriptions.
Solución
Summary
- Symbol is a primitive data type that is used to create a unique identifier.
- We use the global
Symbol()
function to create symbols. - We can provide a
description
to aSymbol()
function as an optional argument. - The description of the symbol can be accessed through the
.description
property.
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 29
Symbols 3/3
Accessing the Description of the Symbol()
We can access the description of the symbol by calling the .description
method.
let firstName = Symbol('Michael'); console.log(firstName.description);
Tarea
Swipe to begin your solution
Create two symbols personName
and personAdress
by using Symbol()
give them the description of Name
and Address
and display their descriptions.
Solución
Summary
- Symbol is a primitive data type that is used to create a unique identifier.
- We use the global
Symbol()
function to create symbols. - We can provide a
description
to aSymbol()
function as an optional argument. - The description of the symbol can be accessed through the
.description
property.
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 3. Capítulo 29
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones