File tree Expand file tree Collapse file tree 1 file changed +56
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript Expand file tree Collapse file tree 1 file changed +56
-0
lines changed Original file line number Diff line number Diff line change 1+ //# #00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO
2+
3+ // #1 URL del sitio oficinal del lenguaje https://developer.mozilla.org/es/docs/Web/JavaScript
4+
5+ // #2 Comentario de una unica linea (Se realiza con "//" al inicio)
6+
7+ /*
8+ Comentarios en multiples lineas
9+ Se realizan con "/*" al inicio y "* /" al final
10+ */
11+
12+ // #3 Crea una variable (y una constante si el lenguaje lo soporta).
13+
14+ // ---- Variable -----
15+
16+ let nombreLenguaje = "JavaScript" ;
17+ var Cliente
18+
19+ // ---- Constante -----
20+
21+ const VersionLenguaje = "ECMAScript 13" ;
22+
23+ // #4 Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
24+
25+ // ---- String ----- Representa una cadena de texto.
26+
27+ let string = "Hello, world!" ;
28+ let nombre = "UserMatthew"
29+
30+ // ---- Number ----- Representa un número.
31+
32+ let number = "27"
33+
34+ // ---- Boolean ----- Representa un valor booleano (Verdadero o falso)
35+
36+ let boolean = true
37+
38+ // ---- Null ----- Representa un valor nulo.
39+
40+ let nullVariable = null
41+
42+ // ---- Undefined ----- Representa un valor indefinido.
43+
44+ let undefinedVariable
45+
46+ // ---- Symbol ----- Representa un identificador único.
47+
48+ let symbolVariable = Symbol ( "Unique" ) ;
49+
50+ // ---- BigInt ---- Representa un número entero de gran tamaño.
51+
52+ let bigIntVariable = 1234567890123456789012345678901234567890
53+
54+ // Imprime por terminal
55+
56+ console . log ( `${ string } , Mi nombre es ${ nombre } y esto es ${ nombreLenguaje } !` ) ;
You can’t perform that action at this time.
0 commit comments