Assuming you have an ordered list with ID "myList", what does the following JavaScript code do?
<ol id="myList">
<li>Item 1</li>
<li>Item 2</li>
</ol>
const list = document.getElementById('myList');
const newItem = document.createElement('li');
newItem.textContent = 'Item 3';
list.appendChild(newItem);