File tree Expand file tree Collapse file tree 1 file changed +39
-1
lines changed Expand file tree Collapse file tree 1 file changed +39
-1
lines changed Original file line number Diff line number Diff line change @@ -15,4 +15,42 @@ console.log("El total es ${total}.");
15
15
16
16
console . log ( `<div>El total es <code>${ total } </code></div>` ) ;
17
17
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
+
You can’t perform that action at this time.
0 commit comments