File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/javascript Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change 1+ // https://developer.mozilla.org/es/docs/Web/JavaScript
2+
3+ // Este es un ejenplo de como hacer comentarios en una sola línea.
4+
5+ /* Para hacer comentarios en varias líneas
6+ se puede hacer de esta manera, se incia con
7+ un slash y un asterisco y se cierra con un asterisco
8+ y un slash
9+ */
10+
11+ // Creamos una variable y una constante.
12+
13+ let nombre = "Estefrac" ;
14+ const pulgadas = 2.54 ;
15+
16+ // Variables representando tipos de datos primitivos.
17+
18+ let texto = "Retos de Programación" ; // String
19+ let numEntero = 43 ; // Number
20+ let numDecimal = 1.23 ; // Number
21+ let mejorRoadmap = true ; // Boolean
22+ let proximasVacaciones ; // Undefined
23+ let tiempoLibre = null ; // Null
24+
25+ // Imprimir en consola el mensaje "¡Hola, JavaScript!"
26+
27+ console . log ( "¡Hola, Javascript!" ) ;
You can’t perform that action at this time.
0 commit comments