⊗jsSpPADf 46 of 294 menu

Differences from arrays in JavaScript

Although pseudo-arrays are similar to arrays, they are still ordinary objects. They don't have array methods like map, join, slice.

For example, if you try to use slice to DOM elements, then it just won't work:

console.log(elems.slice(1, 3)); // there will be an error

Paragraphs are given:

let elems = document.querySelectorAll('p');

Check if the array methods will work for the variable elems.

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