Using the jQuery $ selector makes getting DOM elements a lot easier. I want to be able to replicate this selector in plain javascript. How would I do this?
Note: I do not want to replace all instancew of $('')in my code with document.querySelector(), rather, I want to define $ as a function.