JavaScript JavaScript and the DOM Getting a Handle on the DOM Selecting by Id

Brian Johnson
Brian Johnson
Front End Web Development Techdegree Graduate 19,443 Points

I don't understand what is being asked of me. please help

Not sure how to do this

let button;
let input;

button.addEventListener('click', () => {
<!DOCTYPE html>
    <title>Phrase Sayer</title>
    <p><input type="text" id="phraseText"></p>
    <p><button id="sayPhrase">Say Phrase</button></p>
    <script src="js/app.js"></script>

1 Answer

it's asking you to set the button to equal the ID sayPhrase
it should be something like let button =...;