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

I have inputted my answer into the javascript doc and I don't know what is incorrect about it?

var button= document.getElementbyId('sayPhrase');

var button= document.getElementbyId('sayPhrase');
var 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>

2 Answers

Hi! you have a very small problem. look at your getElementbyId tag, it should be getElementById with a capital B

Ah- thank you :D Always the tiny things that pass unseen.