title: Uncaught SyntaxError: Invalid destructuring assignment target
body: <p>I have problem in my jquery code . Can any one help me regarding this error: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Invalid destructuring assignment target</p>
  </blockquote>
  
  <pre><code>$(function() {
    $('#Events').on("slides", function({
      generateNextPrev: true, 
      play: 5000,
      pause: 2500,
      hoverPause: true,
      preload: true,
      preloadImage: '/images/loading.gif'
    });
  
    // $('#slides_container').css("display", "inline");
    );
  });
  </code></pre>
  
  <p>This error is coming in this line <code>generateNextPrev: true,</code>. Kindly guide me, what's the issue.</p>