I am curious as to why this particular template literal is not functioning correctly when I try to implement it using JavaScript DOM for styling CSS. Any assistance in helping me understand this issue would be greatly appreciated!
let weatherColors = ['sunny', 'cloudy', 'rainy', 'stormy'];
if (weather == true) {
forecast.style.backgroundColor = '${weatherColors[getRandomInt(4)]}';