File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/typescript Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ // EJERCICIO:
2+ // Crea un comentario en el código y coloca la URL del sitio web oficial del lenguaje de programación que has seleccionado.
3+ // https://www.typescriptlang.org
4+
5+
6+ // Representa las diferentes sintaxis que existen de crear comentarios en el lenguaje (en una línea, varias...).
7+ // Comentario de una linea
8+ /*
9+ Comentario de
10+ varias
11+ lineas
12+ */
13+
14+
15+ ( ( ) => {
16+ // Crea una variable (y una constante si el lenguaje lo soporta).
17+ let cadena :string = "Cadena de texto"
18+ const numero = 10
19+
20+ // Crea variables representando todos los tipos de datos primitivos del lenguaje (cadenas de texto, enteros, booleanos...).
21+ const name = "Typescript"
22+ const age = 20
23+ const isStudent = true
24+ const nullVal = null
25+ const undefinedVal = undefined
26+
27+ // Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
28+ console . log ( `¡Hola, ${ name } ` )
29+ } ) ( )
You can’t perform that action at this time.
0 commit comments