Why when I use .getElementById() (I used it as a test) works but querySelectorAll() doesn't work and throws "addEventListener is not a function?" Is it because I am selecting multiple buttons or is there a multiple addEventListeners syntax that exists?
const btn = document.querySelectorAll("marker");
btn.addEventListener("click", () => {
    console.log("works");
});
btn.addEventListener("click", () => {
    if (btn.style.backgroundColor === "green") {
        btn.style.backgroundColor = "red";
        btn.innerHTML = "-";
    } else {
        btn.style.backgroundColor = "green";
        btn.innerHTML = "+";
    }
});<!DOCTYPE html>
<html>
    <head>
        <title>Marking</title>
    </head>
    <body>
        <script src="script.js" defer></script>
        <div id="main">
            <button id="marker" style="background-color: green">+</button>
            <button id="marker" style="background-color: green">+</button>
            <button id="marker" style="background-color: green">+</button>
            <button id="marker" style="background-color: green">+</button>
            <button id="marker" style="background-color: green">+</button>
            <button id="marker" style="background-color: green">+</button>
        </div>
    </body>
</html> 
    