Is there a way in JavaScript to remove the end of a string?
I need to only keep the first 8 characters of a string and remove the rest.
You could try:
myString.substring(0, 8);