title: How to make the save function in Parse work in synchronous manner
body: <p>my Initial code:</p>
  
  <pre><code>var Group = Parse.Object.extend("Group");
  var myGroup = new Group();
  myGroup.set("groupName", "book");
  myGroup.set("category", "Hobby");
  myGroup.save(null, {
      success: function(object) {
      },
      error: function(error) {
          // Fail
      }
  });
  alert("now go");
  </code></pre>
  
  <p>So output:
  First now go is printed and then save function worked due to asynchronous nature</p>
  
  <p>Then i modified as:</p>
  
  <pre><code>var Group = Parse.Object.extend("Group");
  var myGroup = new Group();
  myGroup.set("groupName", "book");
  myGroup.set("category", "Hobby");
  myGroup.save(null).then(
      function(object) {
      },
      function(error) {
          // Fail
      }
  );
  alert("now go");
  </code></pre>
  
  <p>Now output: <strong>TypeError: myGroup.save(...).then is not a function</strong> but the group object gets added in the Parse I don't know why? Why i am getting this error?</p>
  
  <p>So, i have searched on stackoverflow and google, bu can't find useful to me. I am new to this asuychronous stuff, really. What i wanted to make this save function work as synchronous, I have read Promise stuff but can't really get it.</p>