[JS] 마지막 문자열 제거
1. slice() const str = "Hello, World, JavaScript,"; let newStr = str.slice(0, -1); console.log(newStr); newStr = str.slice(0, str.length - 1); console.log(newStr); 2. substring() const str = "Hello, World, JavaScript,"; const…
0 Comments
2023년 08월 23일