⊗jsPmSMBE 196 of 504 menu

Border elements in JavaScript

shift pop push unshift

Given the following array:

[1, 2, 3]

Display the first element of this array.

Given the following array:

[1, 2, 3]

Display the last element of this array.

Given the following array:

[1, 2, 3]

Add the elements 4, 5, 6 to its end.

Given the following array:

[1, 2, 3]

Add the elements 4, 5, 6 to its start.

English
AfrikaansAzərbaycanБългарскиবাংলাБеларускаяČeštinaDanskDeutschΕλληνικάEspañolEestiSuomiFrançaisहिन्दीMagyarՀայերենIndonesiaItaliano日本語ქართულიҚазақ한국어КыргызчаLietuviųLatviešuМакедонскиMelayuမြန်မာNederlandsNorskPolskiPortuguêsRomânăРусскийසිංහලSlovenčinaSlovenščinaShqipСрпскиSrpskiSvenskaKiswahiliТоҷикӣไทยTürkmenTürkçeЎзбекOʻzbekTiếng Việt
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline