mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-13 09:02:23 -05:00
358 B
358 B
title, localeTitle
| title | localeTitle |
|---|---|
| Manipulate Arrays With push() | التعامل مع صفائف بدفع () |
التعامل مع صفائف بدفع ()
تسمح لك طريقة push() بإلحاق (إضافة إلى النهاية) عنصر إلى مصفوفة. مثل ذلك…
var arr = [1, 2, 3, 4]; arr.push(5); // Now, the array is [1, 2, 3, 4, 5]