Can someone explain to me the the last part of the code means the else statement? . Thant will be helpful thanks.
if( modalWindow.classList ){ //read that it has a class
modalWindow.classList.add('open') //adds the class name open
}else{
modalWindow.className += ' ' + 'open'; // ? <------ += ' ' + 'open '
}