"use strict"; const getElement = selector => document.querySelector(selector); document.addEventListener("DOMContentLoaded", () => { // get the main image and caption elements const mainImage = getElement("#main_image"); const caption = getElement("#caption"); // get all the elements in the