結果 : get first 10 character of string javascript