Below is my css code, I wanna change the url background via javascript, maybe adding it to a variable because the url will be changing depeding on some cases in my program. How do I do this? Thanks :)
body {
width: 100vw;
height: 100vh;
background: url('exampleurl.com/example');
background-color: #02203b;
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}