The URL is stored in an Array. I want to use it to change the div background image. But it didn't work. e.g.
<div id = "test"></div>
let arr = [1,2,3,'https://reurl.cc/RX3bkD'];
document.getElementById("test").style.backgroundImage = "url(arr[3])";
What could I do? Any help is appreciated.