What is the reason behind the success of the following line of code:
document.getElementById('ID').style.backgroundImage = 'url('+ variable +')';
But this line fails to produce the desired outcome:
document.getElementById('ID').style.backgroundImage = "url('+ variable +')";
What is the correct way to utilize quotes in JavaScript
?