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+ // Esto es Un comentario en linea
2+
3+ /*
4+ Este es un
5+ comentario en
6+ Bloque
7+ */
8+
9+ /**
10+ * Esta es otra forma de comentar
11+ * es en bloque
12+ * y se usa para documentar.
13+ */
14+
15+ // Sitio web oficial de JavaScript:
16+ // https://developer.mozilla.org/es/docs/Web/JavaScript
17+
18+
19+ //VARIABLES Y CONSTANTES
20+
21+ //Variables (SE USA NORMALMENTE 'let')
22+ let varibleLet = 'Esto es una cadena de texto'
23+ var variableVar = "Esto tambien es un txt" //No se suele usar normalmente
24+
25+ //Constantes (No puede cambiar de Valor una vez se asigne)
26+ const CONSTANTE_EJEMPLO = "Esto es una constante"
27+
28+ //DATOS PRIMITIVOS
29+
30+ //String
31+ let cadena = "Hola, JS"
32+ let cadena2 = 'Hola , JavaScript'
33+
34+ //Number (Int, float, ...)
35+ let entero = 276
36+ let decimal = 0.4
37+ let negativo = - 8
38+ //BigInt (numero muy grande)
39+ let numeroGrande = 8349586348294983248723
40+
41+ //Boolean (Valores lógicos True o False)
42+ let verdadero = true
43+ let falso = false
44+
45+ //Undifined (Variable sin valor)
46+ let indefinida ;
47+
48+ //Null (Dato que vale Nulo)
49+ let nulo = null
50+
51+ //Symbol (Valor Unico e Inmutable)
52+ let Simbolo = Symbol ( "simbolo" )
53+
54+ // IMPRIMIR POR TERMINAL
55+ console . log ( "==== ¡HOLA, JavaScript! ====" )
56+
You can’t perform that action at this time.
0 commit comments