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.
11001000000000000001010
110000000001101011100
What would be the way to do this using JavaScript?