結果 : remove the last character of a string javascript