If you have the following HTML and JavaScript, what class will the div with id "myDiv" have after clicking the button?
<div id="myDiv" class="class1"></div>
<button id="button">Change class</button>
document.getElementById('button').addEventListener('click', function() {
document.getElementById('myDiv').className = 'class2';
});