title: JavaScript Split, Split string by last DOT "."
body: <p>JavaScript Split,  </p>
  
  <ol>
  <li><p>str = '123.2345.34'  , <br>
  expected output 123.2345 and 34 </p></li>
  <li><p>Str = 123,23.34.23<br>
  expected output 123,23.34 and 23</p></li>
  </ol>
  
  <p>Goal : JS function to Split a string based on dot(from last) in O(n).
  There may be n number of ,.(commas or dots) in string.</p>