I seem to be writing a line of code wrong, how can I get this code to display in the section class of .background-image
$(document).ready(function () {
"use strict";
var images = [],
index = 0;
images[0] = "<img src= 'gfx/develop-design-header-image-1.jpg' alt='Visit Computer Hope'>";
images[1] = "<img src= 'gfx/develop-design-header-image-2.jpg' alt='Visit Computer Hope'>";
images[2] = "<img src= 'gfx/develop-design-header-image-3.jpg' alt='Visit Computer Hope'>";
images[3] = "<img src= 'gfx/develop-design-header-image-4.jpg' alt='Visit Computer Hope'>";
images[4] = "<img src= 'gfx/develop-design-header-image-5.jpg' alt='Visit Computer Hope'>";
images[5] = "<img src= 'gfx/develop-design-header-image-6.jpg' alt='Visit Computer Hope'>";
index = Math.floor(Math.random() * images.length);
// document.write(images[index]);
document.getElementsByClassName(".background-image") [0].style.backgroundImage = `url('${images[index]}')`;
});