File tree Expand file tree Collapse file tree 2 files changed +11
-10
lines changed
Expand file tree Collapse file tree 2 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -10,4 +10,7 @@ const element = {
1010 isAdult : true ,
1111 a : [ 1 , 2 , 3 ] ,
1212 a2 : [ 1 , 2 , 3 ] ,
13- }
13+ }
14+
15+ let week1 : string [ ] = [ 'mon' , 'tue' , 'wed' ] ;
16+ let week2 : Array < string > = [ 'mon' , 'tue' , 'wed' ] ;
Original file line number Diff line number Diff line change 1- //λ°°μ΄ λ°©μ νμ
μ§μ
1+ // νν νμ
μ§μ λ°©μ
22
3- let age : number = 30 ;
4- let isAdult : boolean = true ;
5- let a : number [ ] = [ 1 , 2 , 3 ] ;
6- //μ λ€λ¦μ μ¬μ©ν΄μ Arrayμ νμ
μ μ§μ
7- let a2 : Array < number > = [ 1 , 2 , 3 ] ;
3+ //첫 λ²μ§Έ μΈμλ string, λ λ²μ§Έ μΈμλ number
4+ let b : [ string , number ] ;
85
9- let week1 : string [ ] = [ 'mon ' , 'tue' , 'wed' ] ;
10- let week2 : Array < string > = [ 'mon' , 'tue' , 'wed' ] ;
6+ b = [ 'z ' , 3 ] ;
7+ // b = [3 , '3']; //-> error
118
12- // week1.push(3); //-> error νμ
μ΄ μΌμΉνμ§ μμ
9+ b [ 0 ] . toLowerCase ( ) ;
10+ // b[1].toLowerCase(); //-> error: μ«μμλ λ/μλ¬Έμλ₯Ό μ§μ ν μ μλ€.
You canβt perform that action at this time.
0 commit comments