結果 : javascript print first n characters of string