title: How to slice string from the end in JavaScript?
body: <p>I have a list of binary values as strings with different lengths, however I need to slice off the last 18 characters from each value. So in the examples below, the bold is what needs to be kept. </p>
  
  <p><strong>11001</strong>000000000000001010</p>
  
  <p><strong>110</strong>000000001101011100</p>
  
  <p>What would be the way to do this using JavaScript?</p>