What is the main difference between these two methods of referencing?
What are the benefits of using one or the other? Also what kind of usage-case would they each
The first statement contains a bool value depends on document.querySelector('.selector') is null or not
var selection = document.querySelector('.selector') !== null;
the second statement contains the actual value of document.querySelector('.selector');
var selection = document.querySelector('.selector');