Skip to content

Commit 89bc48b

Browse files
committed
Completo un poco el ejemplo
1 parent 892cfec commit 89bc48b

File tree

1 file changed

+39
-1
lines changed

1 file changed

+39
-1
lines changed

2023-02-23/hola/index.ts

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,42 @@ console.log("El total es ${total}.");
1515

1616
console.log(`<div>El total es <code>${total}</code></div>`);
1717

18-
console.log(typeof total);
18+
console.log(typeof total);
19+
20+
let x : number = 3;
21+
let y : string = "sadf";
22+
let z : boolean | null = null;
23+
console.log(x, y, z);
24+
25+
function suma(a: number, b: number) {
26+
return (a + b);
27+
}
28+
29+
function sumaGenerica(a: any, b: any) {
30+
return a + b;
31+
}
32+
33+
let x2;
34+
x2 = 1;
35+
x2 = "slkdjf";
36+
x2 = true;
37+
x2 = null;
38+
39+
let x3, x4 = 3, x5 = "hola";
40+
x3 = true;
41+
x4 = 90;
42+
x5 = String(123);
43+
44+
const CONTENT_FOLDER = '/home/data/content';
45+
46+
const texto = `${frase} y luego ${frase2}`;
47+
console.log(texto);
48+
49+
let año = 2023;
50+
console.log(año);
51+
52+
53+
54+
55+
56+

0 commit comments

Comments
 (0)