string method to remove after certain character javascript code example Example: js remove after character url.split('?')[0]