My goal is to utilize JavaScript in order to retrieve the ID of each image on a webpage that is associated with the CSS class 'asset', and then store these IDs in a new array.
While I am able to collect all the images as shown below, I now need to extract their IDs into a separate array.
var image_ids = document.getElementsByClassName("asset");