fazlurr
7/15/2016 - 8:51 AM

Vanilla JavaScript - Query Selector - http://modernweb.com/2013/05/06/5-things-you-should-stop-doing-with-jquery/

// create a global '$' variable
window.$ = function(selector) {
  return document.querySelector(selector);
};

(function() {
  // select item1 by id and change it's background color to salmon
  var item = $("#salmon").style.backgroundColor="salmon";
  console.log(item);
}());