You can use the slice() method to remove the last character from a string, passing it 0 and -1 as parameters: const str = 'JavaScript' const ...
確定! 回上一頁