File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ // *Ejercicio #00 SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO
2+
3+ /*
4+ * Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado
5+ */
6+
7+ // https://developer.mozilla.org/es/docs/Web/JavaScript
8+ console . log ( 'https://developer.mozilla.org/es/docs/Web/JavaScript' ) ;
9+
10+ /*
11+ * Representa las diferentes sintaxis que existen de crear comentarios
12+ * en el lenguaje (en una línea, varias...).
13+ */
14+
15+ // doble slash '//' para comentar una sola linea.
16+ /* Slash y asterisco para hacer comentarios multilinea. */
17+
18+ /*
19+ * Crea una variable (y una constante si el lenguaje lo soporta).
20+ */
21+
22+ var a = 10 ;
23+ let b = 20 ;
24+ const c = 30 ;
25+
26+ /*
27+ * Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
28+ */
29+
30+ // cadena de caracteres o string
31+
32+ let nombre = ' Brian Oconor ' ;
33+
34+ // Numero enteros
35+
36+ let number = 123546 ;
37+
38+ // BigInt
39+
40+ let numberGrande = BigInt ( 5115421368641 ) ;
41+
42+ // Booleano o Boolean
43+
44+ let boleanitoF = false ;
45+ let boleanitoV = true ;
46+
47+ // symbol
48+
49+ let symbol1 = Symbol ( 'a' ) ;
50+ let symbol2 = Symbol ( 'a' ) ;
51+
52+ /*
53+ * Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
54+ */
55+
56+ console . log ( 'Hola JavaScript ' ) ;
57+
58+
You can’t perform that action at this time.
0 commit comments