Click without JavaScript !
Intro
Let's say that you have a button on which you want to click and perform a simple action like displaying some hidden content.You'll directly think :
const btn = document.getElementById("btn")
btn.addEventListener("click", () => {
// display ...
lebcit.hashnode.dev2 min read