slice(-2) returns a new string containing the last two characters of str . const str = 'Coding Beauty'; const last2 = str.slice ...
確定! 回上一頁