Code faster with Snippets (VSCode)
Let's say you're working on a web development project and have to select 10 DOM elements with the infamous querySelector() method. Selecting just one element and assigning it to a variable could go like this:
const headerEl = document.querySelector('...
abinjohn.in3 min read