forked from niomic-id/javascript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharray.js
More file actions
41 lines (39 loc) · 653 Bytes
/
array.js
File metadata and controls
41 lines (39 loc) · 653 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
const data = [[1,2,3,4,5],[6,7,8,9,10]]
var switchcase = () =>{
switch(data[1][3]){
case 1:
console.log("satu")
break;
case 2:
console.log("dua")
break;
case 3:
console.log("tiga")
break;
case 4:
console.log("empat")
break;
case 5:
console.log("lima")
break;
case 6:
console.log("enam")
break;
case 7:
console.log("tujuh")
break;
case 8:
console.log("delapan")
break;
case 9:
console.log("sembilan")
break;
case 10:
console.log("Sepuluh");
break;
default:
console.log("data tidak terhubung");
break;
}
}
switchcase()