title: How to write JSONP Ajax request on pure js?
body: <pre><code>$.ajax( { url : '', data: {}, dataType:'jsonp',  jsonpCallback: 'callbackName', type: 'post'
          ,success:function (data) {
          console.log('ok');
          },
          error:function () {
          console.log('error');
          }
          });
  </code></pre>
  
  <p>How do I write the same functionality in pure JS?</p>