title: How to get the last value of a string?
body: <p>How can i control in java script, wheter the last character in a string is a ", " and how can i delete the last character, if it is a ", "? </p>
  
  <pre><code>var stringToControl = "ABC, XYZ, OOP, "
  </code></pre>