title: How can I use my jQuery code as JavaScript?
body: <p>I was running the below code. It throws the exception “variable <code>jQuery</code> is not defined”. I’m pretty sure that it’s jQuery code. Can someone help me convert my code to pure JavaScript?</p>
  
  <pre><code>fingerprintService = {
    hash: function(fingerprint) {
      if (fingerprint) return hashed(fingerprint)
    },
    fingerprint: function(callback) {
      var excludeScreen = gecko || msie || msedge,
        options = {
          excludes: {
            canvas: gecko,
            screenResolution: excludeScreen,
            availableScreenResolution: excludeScreen,
            enumerateDevices: !0,
            pixelRatio: !0,
            doNotTrack: !0,
            fontsFlash: !0
          }
        };
      return Fingerprint2.get(options, function(components) {
        var values = components.map(function(component) {
            return component.value
          }),
          result = Fingerprint2.x64hash128(values.join(""), 31);
        return callback.call(window, result, components)
      })
    }
  };
  </code></pre>