When to use const and when to use Var in jQuery code example Example: js define constant by element id const elem = document.getElementById('elementID');