// make a variable out of the input and button
var input = document.querySelector("#starter-ex");
var button = document.querySelector("#starter-button");
var myButtonClicked = function () {
// get the current value that's been typed into the input
var typedValue = input.value;
var newHtwo = document.createElement("h2");
// set the text inside this new element
newHtwo.innerText = typedValue;
// make the h2 appear on screen
document.body.appendChild(newHtwo);
// empty out the HTML input
// say which function to call *when* the user clicks the button
button.addEventListener("click", myButtonClicked);