function changeSliderTitle(whichGallery) {
    let sliderDiv = document.getElementById("slider_div");
    let sliderText = sliderDiv.querySelector("span");
    sliderText.innerText = whichGallery
  }
/**
   * Renders the name of the selected gallery as the title of the slider
   * @function changeSliderTitle
   * @param {string} whichGallery Name of the selected gallery
   */
Renders the name of the selected gallery as the title of the slider
@function changeSliderTitle
@param {string} whichGallery Name of the selected gallery
Renders the name of the selected gallery as the title of the slider @function changeSliderTitle @param { string } whichGallery Name of the selected gallery
function changeSliderTitle(whichGallery) {
    let sliderDiv = document.getElementById("slider_div");
    let sliderText = sliderDiv.querySelector("span");
    sliderText.innerText = whichGallery
  }
function changeSliderTitle ( whichGallery ) { let sliderDiv = document . getElementById ( "slider_div" ) ; let sliderText = sliderDiv . querySelector ( "span" ) ; sliderText . innerText = whichGallery }
Renders the name of the selected gallery as the title of the slider
 @function changeSliderTitle
 @param {string} whichGallery Name of the selected gallery
Renders the name of the selected gallery as the title of the slider @function changeSliderTitle @param { string } whichGallery Name of the selected gallery