I have a series of binary strings with various lengths, but I want to extract the last 18 characters from each. In the examples provided below, the bolded part is what should remain.
11001000000000000001010
110000000001101011100
How can I achieve this using JavaScript?