JavaScript objects are also arrays, which makes for a clean solution to index values by a key or name.
JavaScript nesneleri de bir anahtar veya ad ile değerleri endekslemek için temiz bir çözüm sağlayan listelerdir.
There are different ways to loop over arrays in JavaScript, but it can be difficult choosing the right one.
JavaScript'te diziler üzerinde döngü yapmak için farklı yollar vardır, ancak doğru olanı seçmek zor olabilir.
This new syntax is the most elegant way to iterate an array in javascript (as long you don't need the iteration index), but it is not yet widely supported by the browsers.
Bu yeni sözdizimi, javascript'te bir diziyi yinelemenin en zarif yoludur (yineleme dizinine gerek duymadığınız sürece), ancak tarayıcılar tarafından henüz geniş çapta desteklenmez.
Just like most programming languages, JavaScript starts its array indices start at 0.
Tıpkı diğer programlama dillerinde olduğu gibi JavaScriptte de index numarası sıfır (0) ile başlar.
See also David Humphrey's post Iterating over Objects in JavaScript Quickly - for array's for... in is much slower than "normal" loops.
David Humphrey'in yazısı JavaScript'te Nesneleri Yinelemek Hızlıca - dizi için for... in "normal" döngülerden çok daha yavaştır. - Chris Morgan
unshift() method; this method is used to add elements to the beginning of the array in JavaScript.
unshift() metodu: Bu method JavaScript'te dizinin başına eleman eklemek için kullanılır.
The for... in syntax mentioned by others is for looping over an object's properties; since an Array in JavaScript is just an object with numeric property names (and an automatically-updated length property), you can theoretically loop over an Array with it.
for... in Başkaları tarafından bahsedilen sözdizimi, bir nesnenin özellikleri üzerinde döngü yapmak içindir; JavaScript'teki bir Array, sayısal özellik adlarına sahip bir nesne olduğundan (ve otomatik olarak güncellendiğinden) lengthözellik), teorik olarak onunla bir Dizi üzerinde döngü yapabilirsiniz.
The altar was engraved with a variety of luminescent runes and symbols; this altar was the Ten Thousand Killing Array which was used in the ranking war.
Sunakta ışıldayan çeşitli rünler ve semboller kazılıydı; bu sunak sıralama savaşı için kullanılan On Bin Öldürme Dizilimi'ydi.
Potentially sensitive or inappropriate content
Examples are used only to help you translate the word or expression searched in various contexts. They are not selected or validated by us and can contain inappropriate terms or ideas. Please report examples to be edited or not to be displayed. Potentially sensitive, inappropriate or colloquial translations are usually marked in red or in orange.