12.
What are array-like objects in JavaScript?
Objects that have a length property and indexed elements.
Arrays that have additional methods to manipulate their elements.
Objects that can only contain numbers and strings.
Objects that have a variable length that can be modified.
Correct: A
Array-like objects in JavaScript are objects that have a length property and indexed elements like arrays. However, unlike arrays, they do not have additional methods like push() or pop() to manipulate the elements. Examples of array-like objects are the arguments object and NodeList objects returned by the DOM.