분류 javascript

JavaScript에서 공백을 대시로 바꾸는 방법

컨텐츠 정보

  • 조회 591 (작성일 )

본문

const text = "codetogo saved me tons of time";

text.replace(/ /g, "-");