結果 : print last character of string javascript