My question might sound very silly as i am new to javascript. I have the following piece of Plain JavaScript code. What i am trying to achieve is to change background-color of the button when its clicked. I am trying to implement this using plain javascript. No jquery or any other framework.
JS
var save = document.querySelector('.wrapper .content button');
save.addEventListener('click', function () {
save.classList.style.background-color = 'red';
});