title: I need to get the last two value after dot using javascript split
body: <p>I am getting the results like demo.in,demo.co.in,demo.tv,demo.org.in
  I need to split the extension separately using JavaScript split function</p>
  
  <pre><code>var vsp = i.split(".");  
  </code></pre>
  
  <p>this is my code I will get the result as 
  demo,in demo,co,in</p>
  
  <p>but I need to get the extension separately </p>