-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path014 diziler5.html
More file actions
33 lines (26 loc) · 927 Bytes
/
014 diziler5.html
File metadata and controls
33 lines (26 loc) · 927 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script>
const maas=[10000, 20000, 30000, 25000, 35000];
document.write(maas+"<br>");
/* Dizinin eleman sayısı*/
let elemanSayisi= maas.length;
document.write("Dizinin eleman sayısı:"+elemanSayisi+"<br>");
/* Aranılan elemanı bulur */
let sonuc=maas.find(gecenleriGetir);
document.write("Bulunan eleman:"+sonuc+"<br>");
/** Aranılan elemanın sıra numarasını bulur **/
let sonuc2=maas.findIndex(gecenleriGetir);
document.write("Sıra Numarası:"+sonuc2+"<br>");
function gecenleriGetir(value, index, array){
return value>=25000;
}
</script>
</head>
<body>
</body>
</html>