How to find element by id in JavaScript

Last updated Nov 11, 2017
const element = document.querySelector('#element-id');