firstImage = imageCollection.item(0);
firstImage = imageCollection[0];Document: images property / notebook
Document: images property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
for (const image of document.images) {
if (image.src === "banner.gif") {
console.log("Found the banner");
}
}