Html – Using "this" in an addEventListener to replace "document.querySelector()"
Beginner in JavaScript here. I'm building a simple calculator using HTML, CSS and JavaScript. I've realized that if I use this instead of document.querySelector(".add") when adding a style to a button inside of an addEventListener, my code still works. Would…