Query descendent HTML elements

Here, the existing code expects the variables 'buttonElem' and 'inputElem' to represent the button and input elements in the example UI.
Assign the respective elements to the variables.
In this case, the two elements do not have unique identifiers - like for example an id. Instead they are direct descendents of a div element with id 'wrapper'. Use an appropriate selector method!
Click the button to verify that the code is working.
View
<div id="wrapper">
<input value="OFF" readonly/>
<button type="button">Click Me</button>
</div>
HTML
// assign the correct elements to the variables
const buttonElem =
const inputElem =
buttonElem.addEventListener('click', () => { const oldText = inputElem.value; return inputElem.value = oldText === "ON" ? "OFF" : "ON"; });
Javascript