درس 6 من 10
Arrays
الـ array تخزن قائمة من القيم. تبدأ الفهارس من 0، لذلك أول عنصر يكون عند index 0. يمكنك إضافة عناصر باستخدام push() وإزالة آخر عنصر باستخدام pop().
JS
let fruits = ["apple", "banana", "cherry"];
console.log(fruits[0]); // "apple"
fruits.push("date");
console.log(fruits.length); // 4