Hello i have this submit button that i want to add to it an event listener but when i test to see if it works with a console.log it gives me this error i googled and didn't understand what's the problem
const name = document.getElementById("name")
const tel = document.getElementById("number")
const email = document.getElementById("email")
let send = document.querySelector("#btn");
send.addEventListener('click', ()=>{
console.log("workds")
})
Uncaught TypeError: send is null