Testing...But not Working

I’m trying to test this button out to see if the JS and HTML are hooking up, but it won’t work. Can I get some help?

HTML:

<button id="rpsStarter">
            Click to lock your choice and start the battle!
        </button>

JS:

rpsStarter.addEventListener("click", function () {
    alert("Hello!");
});

PS: No, I didn’t actually but “HTML:” and "JS: and the code right next to eachother like that

Where is your DOM object, rpsStarter?

1 Like